stitch:crud

Generates a CRUD interface for Entity Beans.

Mojo Attributes:

  • Requires a Maven 2.0 project to execute.
  • Automatically executes within the lifecycle phase: process-classes

Required Parameters

Name Type Description
entityClasses String[] List of Entity Classes.
outputDirectory File Location of the file.

Optional Parameters

Name Type Description
templateLocation String Template location. Users may override the default templates to get a customized look and feel. Default value is net/sf/stitch/crud/templates/.
userProperties Properties User defined Template Properties. Additional information passed to templates.

Parameter Details

entityClasses

List of Entity Classes.

  • Type: java.lang.String[]
  • Required: Yes

outputDirectory Location of the file.
  • Type: java.io.File
  • Required: Yes
  • Expression: ${project.build.directory}/${project.build.finalName}

templateLocation Template location. Users may override the default templates to get a customized look and feel.
  • Type: java.lang.String
  • Required: No
  • Default: net/sf/stitch/crud/templates/

userProperties User defined Template Properties. Additional information passed to templates.
  • Type: java.util.Properties
  • Required: No