注释类型 DiscriminatorOptions


  • @Target(TYPE)
    @Retention(RUNTIME)
    public @interface DiscriminatorOptions
    Optional annotation to express Hibernate specific discriminator properties.
    作者:
    Hardy Ferentschik
    • 可选元素概要

      可选元素 
      修饰符和类型 可选元素 说明
      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.
    • 元素详细资料

      • 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.
        默认值:
        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.
        默认值:
        true