-->
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: CGLIB problem with HibernateProxy and LazyInitializer
PostPosted: Mon Apr 07, 2008 3:53 pm 
Newbie

Joined: Fri Apr 15, 2005 9:22 am
Posts: 11
Hibernate version: 3.2

Situation:

1. I create an Object

2. I enhace the Object using CGLIB and make the object implement an "Unpersisted" interface.

3. I do the save(Object) operation but an exception is thrown due to Hibernate mapping fails to find the object called -> Object$EnhancedByCGLIB

Temporary Fix:

Enhance the object and make it also implement an HibernateProxy interface which returns a "anonymous home made" LazyInitializer.
I'd like to listen to better alternatives because don't think that is the correct way of fixing this problem.

Regards.

Sebastian.


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