-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Multi-level embedding (embedded inside embeddable) vs. JSR
PostPosted: Tue Jun 06, 2006 7:25 am 
Newbie

Joined: Sun Jun 04, 2006 4:19 pm
Posts: 9
Location: Germany
Although Hibernate supports components inside components, JSR-220 does not: "Support for only one level of embedding is required by this specification." (Chapter 2.1.5)
One could argue that although the JSR does not require it, implementations may support it. However, the orm.xml schema seems to prohibit embedded attributes inside embeddable.

I also tried annotations with embeddedable classes that have embedded attributes, but I could not get it to work. I wonder if that would work. How would the mapping look like? Something like @AttributeOverride(name="x.y", column=@Column(name="colXY")) ??

Nevertheless, our project somehow depends on this functionality. It would be nice not to use annotations because we do not have full controll of the embedded classes, but using annotations might be a back up plan.

So, what's the recommended way to do this? Mix hbm and annotations/orm.xml?

Thank you.
Markus


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.