-->
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.  [ 3 posts ] 
Author Message
 Post subject: Fill object from proxy
PostPosted: Fri Oct 28, 2005 4:24 pm 
Beginner
Beginner

Joined: Mon Oct 03, 2005 5:13 pm
Posts: 30
Hi all. I´m trying to implement a method that fills an object from data coming from a proxy, but the fields of the proxy aren´t the same from object, according with the proxy implementation of hibernate.

Code:
public void fillObject(Object proxy, Object pop)


Anyone can help me? thanks a lot!


Top
 Profile  
 
 Post subject: BeanUtils
PostPosted: Fri Oct 28, 2005 5:59 pm 
Expert
Expert

Joined: Fri Jul 22, 2005 2:42 pm
Posts: 670
Location: Seattle, WA
BeanUtils might help http://jakarta.apache.org/commons/beanu ... ang.Object)

_________________
--------------
Konstantin

SourceLabs - dependable OpenSource systems


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 28, 2005 9:41 pm 
Beginner
Beginner

Joined: Mon Oct 03, 2005 5:13 pm
Posts: 30
Thanks for the hint! I´ll try this...

I tried something like this, making the class implements Cloneable, but a reference to other object is lazy loaded too and this keeps "proxied" (sorry ´bout my english =p )


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.