-->
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: Association x Generics in alpha version
PostPosted: Fri Apr 07, 2006 12:00 am 
Beginner
Beginner

Joined: Mon Mar 06, 2006 2:19 pm
Posts: 42
Location: Belo Horizonte, Brazil
I compiled the source with support to Generics and want to know if anyone knows how to map a bag with it.

At the class I used PersistentGenericBag but it throws an exception with the bag type in the hbm.xml file.

Thank you.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 07, 2006 10:42 am 
Senior
Senior

Joined: Thu Aug 25, 2005 3:35 am
Posts: 160
map the bag like you would normally do, but add the generic="true" attribute.
At the class, do not use the persistentGenericBag.. that is for NH internally.. Just use an Ilist<T>, which is the way you would want to work with it anyway.


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.