Open in new window

back

Auto Mapping Settings Reference

GroupPropertyDescription
Associations
Cascade on collectionsSet a value for cascade attribute on collection mappings (map, set, bag, idbag, list, array)
Cascade on referencesSet a value for cascade attribute on reference mappings (many-to-one, one-to-one)
Delete cascadingSet a value for on-delete attribute on a collection keys
Lazy collection initializationSet a value for the lazy attribute on collection mappings
Lazy reference initializationSet a value for the lazy attribute on reference mappings (many-to-one, one-to-one)
Automatic mapping
Base class for POJOsSelect a super class for all generated POJO classes or an interface that they should implement
Default collection elements typeSet a Hibernate type which should be used for a collection element, if the type of the element is unknown
Default unindexed collection typeSet a collection type which should be used in bidirectional associations
Fuzzy Search OnTurn on heuristic search algorithms during automatic mapping generation. This can be useful for the meet-in-the-middle approach. For example, if this option is on then the generator will map the field ‘number’ and the column ‘I_NMBR’ together
Fuzzy Search SimilaritySet a minimal similarity during fuzzy search. The value changes from 0 and 1. 1 means equality and 0 means no similarity between words. Recommended values: 0.2 – 0.8
Inheritance mapping strategySet a default inheritance mapping strategy
Mapping by reachabilityDefines how to create mapping for associated classes.
  • "Automap everything" creates mappings for all properties
  • "Automap identifiers" creates mappings for identification properties only
Mapping storage strategyChoose how to save mappings in XML files. Possible values: XML file per hierarchy, XML file per package, or XML file per project
Property mappingChoose how to create mappings for properties and fields of persistent classes.
Class mapping
Fetching batch-sizeSet a default value for batch-size attribute of class mapping
Select-before-updateSet a default value for the select-before-update attribute of the class mapping
Discriminator
Discriminator datatypeSet a Hibernate type for the discriminator mapping
Discriminator formulaSet a value for the formula attribute
Discriminator insertSet a value for the insert attribute
Force discriminatorSet a value for the force attribute
Identity
Hibernate Id datatypeDefault Hibernate type for Id mapping
Id unsaved valueSet a default value for the unsaved-value attribute
Unique Id generatorSet a value for class attribute of the <generator> element. You can specify a class name or shortcut name such as native or assigned
Locking
Optimistic locking strategySelect an optimistic locking strategy for classes. If you choose "Check version", then the automatic mapping generator will create a version mapping.
Version datatypeSet a Hibernate type for the version property
Version unsaved valueSet a default value for the unsaved-value attribute
Names
Database schema nameSet a default schema name
Default discriminator nameSet a name for the discriminator property
Default id nameSet a name for the identifier property
Default version nameSet a name for the version property
Ignore namesThe list of space-separated names that should be ignored by the generator
Package nameSpecify a default package name when schema-to-object or “meet-it-the-middle” approaches are used
Query for discriminator nameThe list of space separated names that should be used for existing discriminator property search
Query for id nameThe list of space-separated names that should be used for existing id property search
Query for version nameThe list of space-separated names that should be used for existing version property search
Table prefix patternA regular expression that should match a table prefix. The prefix will not be included in the generated class name.
Numeric Type Mappings
Convert NUMERIC to primitiveSpecify whether NUMERIC columns are mapped to primitive Java type instead of BigInteger or BigDecimal
Exclude rangesSpecify ranges of NUMERIC columns to exclude from conversion to primitives, separating ranges with ";" characters . Examples:
"- , 1- ;"exclude NUMERIC(x,y) where x is any number and y is any number > 1
"- , 2 ;"exclude NUMERIC(x,y) where x is any number and y is then number 2
NUMERIC(1,0) Java typeSet a type that should be used for mapping NUMERIC(1,0) columns
Type Mappings
Various Hibernate typeSet Java types that should be used for the various Hibernate types

back