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.  [ 1 post ] 
Author Message
 Post subject: JPA merge operation returns lazy object
PostPosted: Fri Nov 03, 2006 9:17 am 
Newbie

Joined: Tue Jul 04, 2006 3:42 am
Posts: 9
Hi,

I have got a lot of POJOs that i store to DB over hibernate. Now i came accross to a problem. When i call merge operation on an object (say class A.class) , the operation returns an object in the same class,that is A.class.

However for some (only one) objects, it returns the proxy for the class, which has toString result as: A$EnhancedBy..... .class

I am using JPA annotations on classes, and all of them are the same (@Entity @Table(name="xyz")).

Does anybody have any idea in what cases hibernate returns proxy object from the merge operation? I cannot find the difference between objects that are returned normally from merge, and the ones returned in the proxy.

Thanx in advance,

Siyamed


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.