18 Eylül 2009 Cuma

java deep clone library

http://robust-it.co.uk/clone/index.php

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);

and 

Hiç yorum yok:

Yorum Gönder