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: Singletons with NHibernate
PostPosted: Thu Aug 24, 2006 11:42 am 
Beginner
Beginner

Joined: Fri Dec 23, 2005 6:05 am
Posts: 42
Version: 1.2.0. Alpha 1

I was mapping a singleton containing generic collections. As i run in to an error.

NHibernate seems to want every public property of that singleton to be virtual, but as the class is sealed you cannot have virtual properties.
Anyone has an idea?

Thank you

eg


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 24, 2006 12:11 pm 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Set the class to lazy="false" as it can't be lazy-loaded 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.