-->
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: Is multi-level embedded class supported under JPA/Hibernate?
PostPosted: Fri Jul 30, 2010 3:04 am 
Newbie

Joined: Sat Jan 20, 2007 10:20 pm
Posts: 6
I am using JPA through Hibernate. I prefer using XML metadata rather than in-line tags. That's not a problem.

I am using the embedding of a class within another class. This is documented in JPA specification. However, it is not clear from the documentation that JPA/Hibernate supports multi-level embedding (<embedded>). In other words, I am embedding class C into class B and class B into class A ( C->B->A). That's a 3-level embedding.

It's unfortunage that the documentation does not speak of the possibility.

Can somebody from Hibernate/JPA clarify whether this feature is supported or not? An example XML configuration file would be best. I would really appreciate it.

I tried it and might be getting an error from it. Remember that native Hibernate had an additional tag / XML element to do this. In native Hibernate, there was <component> <embedded-component> for embedding several levels of classes.

JPA/Hibernate is silent on this possiblity.


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.