-->
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: A proxy problem
PostPosted: Thu Sep 08, 2005 11:54 pm 
Newbie

Joined: Wed Aug 17, 2005 11:19 pm
Posts: 11
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3.0.5

I load a mapped class object from session.load() and I use cglib to proxy it, so I get a new class that super class is this mapped class. when I try to update this object in other session(previous session was clear and closed) I get a "class not mapped" error. I know the reason of this error, but I really want to know how to deal with this problem. Somebody help me ?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 09, 2005 12:04 am 
Expert
Expert

Joined: Thu Dec 23, 2004 9:08 pm
Posts: 2008
Access the object immediately after loading it, or map it with lazy="false".


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.