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: NHibernate and Generic IList example
PostPosted: Fri Mar 02, 2007 12:22 pm 
Newbie

Joined: Fri Mar 02, 2007 12:03 pm
Posts: 1
Guys,

I have an IList which is referenced inside the mapping file as:

<bag name="ObjectCollectionName" table="LinkTable" >
<key column="Table1ID" />
<many-to-many column="Table2ID" class="Example.Modules.Abs, Assembly.Modules" />
</bag>

It all works fine, but now I want to change my IList to a Generic IList. When I do this (By adding generic="true" to the bag) and then change the code appropriately, it does not work.

So my question is: Apparently NHibertnate 1.2 supports this, so could someone put an example together, or take my example BAG and show what changes are needed to get the Generic ILists working?

Thank you for your time,

-Mike Bartlett
-UK

_________________
Thanks,

-Mike


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 02, 2007 5:35 pm 
Senior
Senior

Joined: Mon Aug 21, 2006 9:18 am
Posts: 179
Should work..you don't need the generic='true' flag.
Can you please post the code for you class/collection?

_________________
If this helped...please remember to rate it!


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.