-->
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: Can't create specific schema
PostPosted: Tue May 18, 2004 12:14 pm 
Newbie

Joined: Fri May 14, 2004 9:34 am
Posts: 19
What i want to get is to this...

Code:
Task <> (Composite) 1 --------- n TaskAttribute 1 --------- 1 Attribute


where Task has a map of TaskAttribute instances and every TaskAttribute instance has a reference to one only Attribute.
The attribute is an entity, so if I delete the TaskAttribute the Attribute is not deleted, otherwise TaskAtribute instances are Task composite, so If I delete a certain Task all TaskAttributes childs of that Task are inmediatly deleted.

I've been trying to create these schema through the *.hbm.xml but there're several things i couln't resolve, e.g. the composite-element tag.

Could any one please write down the file.hbm.xml containing the three classes examples ? Already read the doc but couldn't find any example as this, and tried as already said various ways of implementing the diagram described but had no luck.

Thanks all.


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.