Models the mapping from GORM classes to the db.
Fields inherited from class | Fields |
---|---|
class Entity |
ALL_DATA_SOURCES, DEFAULT_DATA_SOURCE |
Type | Name and description |
---|---|
boolean |
autoImport Sets whether packaged domain classes should be auto-imported in HQL queries |
boolean |
autoTimestamp Sets whether automatic timestamping should occur for columns like last_updated and date_created |
java.lang.Integer |
batchSize The batch size to use for lazy loading |
CacheConfig |
cache Caching config |
java.util.Map<java.lang.String, PropertyConfig> |
columns |
java.lang.String |
comment DDL comment. |
java.lang.String |
discriminator Value used to discriminate entities in table-per-hierarchy inheritance mapping |
ColumnConfig |
discriminatorColumn Used to configure the disriminator column properties |
java.util.Map |
discriminatorMap Used to hold the attributes for Discriminator, such as formula, type and insertable |
boolean |
dynamicInsert Whether to use dynamically created insert queries, at the cost of some performance |
boolean |
dynamicUpdate Whether to use dynamically created update queries, at the cost of some performance |
Property |
identity The identity definition |
SortConfig |
sort Used to hold the names and directions of the default property to sort by |
Table |
table The table |
boolean |
tablePerConcreteClass Sets whether to use table-per-concrete-class or table-per-subclass mapping |
boolean |
tablePerHierarchy Sets whether to use table-per-hierarchy or table-per-subclass mapping |
java.util.Map |
userTypes Custom hibernate user types |
java.lang.String |
versionColumn The name of the column used for the version number |
boolean |
versioned Whether the class is versioned for optimistic locking |
Type Params | Return Type | Name and description |
---|---|---|
|
PropertyConfig |
getPropertyConfig(java.lang.String name) Obtains a PropertyConfig object for the given name |
|
java.lang.String |
getTableName() The table name |
|
java.lang.String |
getTypeName(java.lang.Class theClass) Return a type name of the known custom user types |
|
boolean |
isTablePerConcreteClass() |
|
void |
setTableName(java.lang.String name) Set the table name |
|
void |
setTablePerConcreteClass(boolean tablePerConcreteClass) |
Methods inherited from class | Name |
---|---|
class Entity |
connection, connections, connections, datasource, getSort, isVersioned, setSort |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Sets whether packaged domain classes should be auto-imported in HQL queries
Sets whether automatic timestamping should occur for columns like last_updated and date_created
The batch size to use for lazy loading
Caching config
DDL comment.
Value used to discriminate entities in table-per-hierarchy inheritance mapping
Used to configure the disriminator column properties
Used to hold the attributes for Discriminator, such as formula, type and insertable
Whether to use dynamically created insert queries, at the cost of some performance
Whether to use dynamically created update queries, at the cost of some performance
The identity definition
Used to hold the names and directions of the default property to sort by
The table
Sets whether to use table-per-concrete-class or table-per-subclass mapping
Sets whether to use table-per-hierarchy or table-per-subclass mapping
Custom hibernate user types
The name of the column used for the version number
Whether the class is versioned for optimistic locking
Obtains a PropertyConfig object for the given name
The table name
Return a type name of the known custom user types
Set the table name