-->
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: Custom Generics Entity with NH
PostPosted: Mon Jun 05, 2006 9:12 pm 
Newbie

Joined: Sun May 28, 2006 7:42 pm
Posts: 19
Location: Italy
Hallo, this is my first post.

I'm using a custom generic Collection called TList<T> which implement The IList<T> interface.
What is the right method to map the class.

<class name="Test3.BLL.Account, Test3.BLL" table="Account">
<id name="IdAccount" type="Int32" column="IdAccount">
<generator class="identity" />
</id>
<bag name="AccountSettingsCollection" generic="true" inverse="true">
<key column="IdAccount" />
<one-to-many class="Test3.BLL.AccountSettings, Test3.BLL" />
</bag>
........
........

How can i set the AccountSettingsCollection Bag to use PersistenGenericList<T>.

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 07, 2006 6:39 am 
Newbie

Joined: Sun May 28, 2006 7:42 pm
Posts: 19
Location: Italy
I'm also trying to use the propertys "collection-type" and "persister", but doesn't work. Someone knows how to use them?


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.