Annotation Type DiscriminatorOptions


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

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

      • force

        boolean force
        "Forces" Hibernate to specify the allowed discriminator values, even when retrieving all instances of the root class. true indicates that the discriminator value should be forced; 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. Default is true.
        Default:
        true