SINGLE_TABLE inheritance strategy using enums as discriminator value

前端 未结 7 1958
谎友^
谎友^ 2020-12-15 15:31

Is it possible to use an enum as a discriminator value when using SINGLE_TABLE inheritance strategy?

相关标签:
7条回答
  • 2020-12-15 16:25

    To my knowledge, this is not possible with annotations:

    • discriminator value must be of type String
    • discriminator value must be a compile-time-constant, i.e. return values from methods on enums are not allowed.
    0 讨论(0)
提交回复
热议问题