Hibernate Subclass which has multiple discriminator values

前端 未结 2 1717
醉话见心
醉话见心 2021-02-04 03:56

Hello I have a Subclass which needs to cover multiple Discriminator Values.

something like:

@DiscriminatorValue(value = \"ACT\",\"DNR\",\"ATT\" )

would d

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-04 05:00

    A subclass has exactly 1 discriminator value.

    You can add additional subclasses under the existing subclass for the extra discriminator values. Subclasses need not have additional properties or behavior.

提交回复
热议问题