Any example using following 
SaveOrUpdate API.
Code:
saveOrUpdate
 void saveOrUpdate(String entityName,
                  Object object)
                  throws HibernateException Either save(String, Object) or update(String, Object) the given instance, depending upon resolution of the unsaved-value checks (see the manual for discussion of unsaved-value checking). 
This operation cascades to associated instances if the association is mapped with cascade="save-update".
 
Parameters:object - a transient or detached instance containing new or updated state Throws: HibernateExceptionSee Also:save(String,Object), update(String,Object)
I am trying to copy a record into backup table.  Both table will have same structure.