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 Default

XML Mapping File

The name and location of the mapping file.

META-INF/eclipselink-orm.xml

Dynamic Class Defaults



Package

Default package name for dynamic classes

model

Mapping defaults



Key generator

Default generation strategy for primary keys:

  • Auto

  • Identity

  • Sequence

  • Table

  • None

None

Sequence name

When using a Key generator, specify its name.

Note: You can use the variables $table and $pk in the Sequence name. Dali will replace them with the table name and primary key column name, respectively, when generating a mapping table.


Associations fetch

Specify the default fetch strategy for generated entities:

  • Default

  • Eager

  • Lazy

Default

Collection properties type

Specify the default collection type, for generated entities:

  • java.util.Set

  • java.util.List

java.util.List


Related tasks

Related reference