Class RevengSettings

java.lang.Object
org.hibernate.tool.api.reveng.RevengSettings

public class RevengSettings extends Object
  • Constructor Details

  • Method Details

    • setDefaultPackageName

      public RevengSettings setDefaultPackageName(String defaultPackageName)
    • getDefaultPackageName

      public String 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

      public RevengSettings setDetectOptimisticLock(boolean optimisticLockSupportEnabled)
    • createCollectionForForeignKey

      public boolean createCollectionForForeignKey()
      if true, a collection will be mapped for each foreignkey
    • setCreateCollectionForForeignKey

      public RevengSettings setCreateCollectionForForeignKey(boolean createCollectionForForeignKey)
    • createManyToOneForForeignKey

      public boolean createManyToOneForForeignKey()
      if true, a many-to-one association will be created for each foreignkey found
    • setCreateManyToOneForForeignKey

      public RevengSettings setCreateManyToOneForForeignKey(boolean createManyToOneForForeignKey)
    • setDetectManyToMany

      public RevengSettings setDetectManyToMany(boolean b)
    • getDetectManyToMany

      public boolean getDetectManyToMany()
    • setDetectOneToOne

      public RevengSettings setDetectOneToOne(boolean b)
    • getDetectOneToOne

      public boolean getDetectOneToOne()
    • getRootStrategy

      public RevengStrategy 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.