File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Other Open Source Projects
Joined: Jul 17, 2008
Jul 24, 2012 10:03:37
To clone a object instance, so that new instance doesn't refers to each other. I stumbled upon this utility class BeanUtils.
POJO cloneBean = (POJO) BeanUtils.cloneBean(pojo);
I've tested this, it works good. I found out this the most easy way of doing object cloning, without getting into writting multuple get/set calls on new object instance.
I would like to see other folks expereience with this utlity and is recommened by all.
SCJP 1.4, SCWCD 5, SCBCD 5, OCPJWSD 5,SCEA-1, Started Assignment Part 2
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
subject: Using org.apache.commons.beanutils.BeanUtils?
seam remoting: can I pass a pojo FROM a client TO a session bean?
java program to convert pojo object to pojo xml
Initializing an object for reuse
how to pass an object 'byvalue'
Loading POJO object without loading library first
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015