开发者

JPA: Can I define a discriminatorColumn on a entity property that is not in the same entity?

Given I have Entity A which has a Many-To-One relation to Entity B. Entity B ha开发者_Go百科s a property (kind of enum) that I would like to use as Discriminator of certain subclasses of Entity A. Can I define that with common JPA and/or Hibernate annotations Or do I need to create discribminated versions of Entity B to create this relation?

Cheers, Kai

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜