Package org.hibernate.tool.api.reveng
Class RevengSettings
java.lang.Object
org.hibernate.tool.api.reveng.RevengSettings
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanif true, a collection will be mapped for each foreignkeybooleanif true, a many-to-one association will be created for each foreignkey foundreturn the default packageName.booleanbooleanbooleanIf true, reverse engineering strategy will try and autodetect columns for optimistc locking, e.g.return the top/root strategy.setCreateCollectionForForeignKey(boolean createCollectionForForeignKey) setCreateManyToOneForForeignKey(boolean createManyToOneForForeignKey) setDefaultPackageName(String defaultPackageName) setDetectManyToMany(boolean b) setDetectOneToOne(boolean b) setDetectOptimisticLock(boolean optimisticLockSupportEnabled)
-
Constructor Details
-
RevengSettings
-
-
Method Details
-
setDefaultPackageName
-
getDefaultPackageName
return the default packageName. Never null, at least the empty string -
getDetectOptimsticLock
public boolean getDetectOptimsticLock()If true, reverse engineering strategy will try and autodetect columns for optimistc locking, e.g. VERSION and TIMESTAMP -
setDetectOptimisticLock
-
createCollectionForForeignKey
public boolean createCollectionForForeignKey()if true, a collection will be mapped for each foreignkey -
setCreateCollectionForForeignKey
-
createManyToOneForForeignKey
public boolean createManyToOneForForeignKey()if true, a many-to-one association will be created for each foreignkey found -
setCreateManyToOneForForeignKey
-
setDetectManyToMany
-
getDetectManyToMany
public boolean getDetectManyToMany() -
setDetectOneToOne
-
getDetectOneToOne
public boolean getDetectOneToOne() -
getRootStrategy
return the top/root strategy. Allows a lower strategy to ask another question. Be aware of possible recursive loops; e.g. do not call the root.tableToClassName in tableToClassName of a custom reversengineeringstrategy.
-