Annotation Type DiscriminatorOptions


@Target(TYPE) @Retention(RUNTIME) public @interface DiscriminatorOptions
Optional annotation to express Hibernate specific discrimintor properties.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    "Forces" Hibernate to specify the allowed discriminator values, even when retrieving all instances of the root class.
    boolean
    Set this to false, if your discriminator column is also part of a mapped composite identifier.
  • Element Details

    • force

      boolean force
      "Forces" Hibernate to specify the allowed discriminator values, even when retrieving all instances of the root class.
      Returns:
      true in case the discriminator value should be forces, false otherwise. Default is false.
      Default:
      false
    • insert

      boolean insert
      Set this to false, if your discriminator column is also part of a mapped composite identifier. It tells Hibernate not to include the column in SQL INSERTs.
      Returns:
      true in case the discriminator value should be included in inserts, false otherwise. Default is true.
      Default:
      true