-->
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.  [ 3 posts ] 
Author Message
 Post subject: idbag + generics....going to be part of 2.0?
PostPosted: Tue Apr 25, 2006 8:31 pm 
Newbie

Joined: Fri Apr 14, 2006 3:04 pm
Posts: 10
Hi,

I'm using the 2.0 framework and mapping a many-to-many relationship via idbag (note the join table has a surrogate key):

<idbag name="Locations"
table="DBUser_Location_Department"
lazy="true"
cascade="save-update">
<collection-id column="DBUser_Location_DepartmentID" type="Int32">
<generator class ="identity" />
</collection-id>
<key column="DBUserID"/>
<many-to-many
class="Core.Domain.Location, Core"
column="LocationID" />
</idbag>

In my class, I can only use IList for my Locations collection. I can not use a strongly typed list, for example.

Does anyone know if generics support will be available for idbag in a future build (or release) of NHibernate 2.0? Anything else I should be aware of with idbag before I start using it allover?

Thanks in advance!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 26, 2006 3:36 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Quote:
Does anyone know if generics support will be available for idbag in a future build (or release) of NHibernate 2.0?


Yes, it's already checked in to SVN and tested.

Quote:
Anything else I should be aware of with idbag before I start using it allover?


Idbags don't support identity generator (see NH-364).


Top
 Profile  
 
 Post subject: Thanks as always <EOM>
PostPosted: Wed Apr 26, 2006 12:04 pm 
Newbie

Joined: Fri Apr 14, 2006 3:04 pm
Posts: 10
NM


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.