Customize Default Entity Generation

Use this page to specify the default information Dali will use when generating the entities from the database tables. You will be able to override this information for specific entities.

Property Description
Table Mapping Use these options to define the table mapping information for the entity.
  Key generator Select the generator used for this mapping.
  Sequence name Enter a name for the sequence.

You can use $table and $pk as variables in the name. These will be replaced by the table name and primary key column name (respectively) when Dali generates a table mapping.

  Entity access Specify the default entity access method: Field (default) or Property.
  Associations fetch Specify the default fetch mode for associations: Default, as defined by the application (default), or Lazy.
  Collection type Specify if the collection properties are a Set or List.

Enable the Always generate optional JPA annotations and DDL parameters option to have Dali include this information in the entity.

Domain Java Class Use these options to define the class information (Package, Superclass, and Interfaces) for the entity.

 

Related task

Creating a JPA Entity
Generating entities from tables
JPA Details view (for entities)

 

Related reference

Generate Entities from Tables Wizard