JPA/DAO

This component is meant to generate JPA enabled DAOs (Data Access Objects). This is done by the following Component :

Please note that in this version, the generated DAOs only provide the basic operations : findById, finAll, makePersistent and makeTransient . You can expect next versions to provide more features.

As shown in the component snapshot, you can visually configure these options :

  • Package : the target DAO package.
  • Class name : the target DAO class name.
  • DTO class : the fully qualified name of the DTO class you want the target DAO to operate on.
  • DTO Id class : the target DTO identifier type.

You can click on Preview button to preview generated code :

Click on the Finish button to generate the DAO java file.