-->
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.  [ 2 posts ] 
Author Message
 Post subject: Embeddable-Objects with inheritance
PostPosted: Tue Jul 03, 2007 4:51 am 
Newbie

Joined: Tue Jun 19, 2007 7:25 am
Posts: 7
Hi,

just a general question: is there a way to have an @Embeddable-Object, that has different inheritance-levels?

For Example I´ve got three classes: "EmbeddableBaby" extends "EmbeddableChild" extends "EmbeddableParent". Now I have a class "Foo", that should have one of these classes as an @Embedded-attribute and depending on what level I choose, it also holds the parent-attributes.

Last question: if there is a way to make that approach work, would I have a possibility to define columns as not-nullable? As the embeddable-approach is closer to the Single_Table-Strategy I cannot imagine that this would work at all.

Please let me know, if there is a way to realize this.

Thomas


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 06, 2009 11:32 am 
Newbie

Joined: Mon Mar 10, 2008 3:07 am
Posts: 7
did you find a solution ? thanks


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

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.