-->
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: Delete hibernate proxy on demand -Java-
PostPosted: Tue Nov 16, 2010 1:39 pm 
Newbie

Joined: Tue Nov 16, 2010 1:25 pm
Posts: 1
Hi! I need your help. I need remove hibernate proxyes from an object to use it throw a WebService. I could do it using:

Some_Object some_object = my_object.getSome_object();
if (some_object instanceof HibernateProxy)
my_object2.setSome_object(
(Some_Object) ( ((HibernateProxy) some_object).getHibernateLazyInitializer().getImplementation() )
);

But it isn't a general solution, because I must do it with every object embeded in some_object.

Any solution?

Thanks


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.