- MVN Appfuse:gen-dentity=name
Generates a crud for Pojo. The value of name is ${groupid}.model by default. Name.
Custom package Path:
-dentity=com.myproject.subpackage.model.name
Or
-dentity=~.subpackage.model.name.
~ Stands for ${groupid}.
There is a selection option if you do not specify a name value. The command will be installed automatically if-ddisableinstallation=true is specified with the following command
- mvn appfuse:install-dentity=name
- mvn appfuse:remove-dentity=name
Actions related to removing DAO
- mvn Appfuse:full-source
- mvn Appfuse:gen-model
To generate a Pojo object from the database
Attention:
- If you do not use the given Genericdao and Genericmanager. Modify the <amp.genericCore>false in Pom.xml </amp.genericCore>
- Settings for foreign keys
If you have tables with foreign key IFT's necessary to alter the template Src/test/resources/appfuse/model/ejb3propertyget Annotation.ftl
<#lt/>${pojo.generatejoincolumnsannotation (property, CFG)} instead of
<#lt/>${pojo.generatejoincolumnsannotation (property)}
To generate @ManyToOne anotations
(It ' s necessary to do MVN appfuse:copy-templates first)
Don ' t forget to change this to read the identifier field from the other Pojo
<form:select ... itemlabel="label" itemvalue="value" >
In your web-inf/pages/entityform.jsp
Appfuse-maven-plugin (AMP)