Appfuse-maven-plugin (AMP)

Source: Internet
Author: User

    1. 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

    2. mvn appfuse:install-dentity=name


    3. mvn appfuse:remove-dentity=name

      Actions related to removing DAO

    4. mvn Appfuse:full-source

    5. 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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.