阅读背景:

Hibernate @embeddable注释等效于XML映射文件?

来源:互联网 

I have a class that I am creating a Hibernate mapping which contains a legacy object that I can't modify, so it doesn't have the necessary id field to play nicely with Hibernate. I would like to annotate the legacy object as an @Embedded field of my new class and write an hbm.xml file for the legacy object and note that it is embeddable. Is there a way to do this? The only documentation for embedding objects I've seen refers to annotating objects instead of using XML.I have a class that I am creating a Hibernate m




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: