TODO: details will be given soon.. DONE!
Edit on 28/09/2009, 11:02:
maybe beanlib is a better, more talented alternative: http://beanlib.sourceforge.net/
here is call sample for both:
for cloner..
Cloner cloner = new Cloner(); cloner.nullInsteadOfClone(SessionImplementor.class, JDBCTransaction.class, SessionImpl.class, org.hibernate.collection.PersistentBag.class);
List cloneResult = cloner.deepClone(result);
for beanlib..
HibernateBeanReplicator r = new Hibernate3BeanReplicator(); List cloneResult = r.deepCopy(result);
for more see http://beanlib.svn.sourceforge.net/viewvc/beanlib/trunk/beanlib-doc/hibernate-bean-replicator.html and
Hiç yorum yok:
Yorum Gönder