-->
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: Are generics supported inside entities?
PostPosted: Thu Dec 06, 2007 12:28 pm 
Newbie

Joined: Thu Dec 06, 2007 12:13 pm
Posts: 3
Hello all,

Im using NH1.2 GA, can I use generics methods inside my entity class?

protected virtual T LazyLoadCollection<T>(object args) {...}

I tried but I got a BadImageFormatException, so since I think I'm using the right set of NH's Dlls (targetting 2.0 framework), I was wondering wether the problem was with that generic method.

Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 07, 2007 8:39 am 
Senior
Senior

Joined: Thu Feb 09, 2006 1:30 pm
Posts: 172
Yes you can, having this method should not cause any issue with your mapping. Your exception would appear to be related to something else. Maybe you mis-mapped another property?


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.