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 this a bug, <component>'s can't have <idbag>
PostPosted: Fri Jul 07, 2006 2:46 am 
Newbie

Joined: Wed Jul 05, 2006 2:16 am
Posts: 6
NHibernate 1.2.0.1001

In my quest to try and solve my problem of expanding a table into distinct collections (see my other post here), I thought that using components with collections might help.

It was working reasonably well until I tried to put an <idbag> inside of a <component>. Apparently the schema doesn't allow for this combination.

Not finding any documentation about why you can't do this (though the book seems to indicate that you can...implicity that is), I decided to modify the nhibernate-mapping-2.0.xsd by inserting:

Code:
<xs:element ref="idbag"/>


on line 523 so that the reference appears just below the 'bag' reference.

I then wrote a test and it appears to persist and retrieve correctly.

My question is, was it an oversight not being able to have an <idbag> in a <component> or is this by design?


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.