开发者

JPA @Inheritance(strategy = InheritanceType.JOINED): Missing class for indicator field value

开发者 https://www.devze.com 2023-04-12 13:52 出处:网络
Is it possible to have a default imple开发者_运维知识库mentation when no class is provided for an indicator field value for not raising this exception?

Is it possible to have a default imple开发者_运维知识库mentation when no class is provided for an indicator field value for not raising this exception?

Missing class for indicator field value 


This is not defined in JPA, but some providers do support more complex indicators.

If using EclipseLink, you can use a ClassExtractor to define your own code to determine the Class to use for each row.

See, http://en.wikibooks.org/wiki/Java_Persistence/Inheritance#No_class_discriminator_column

0

精彩评论

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

关注公众号