[ http://jira.andromda.org/browse/SPRING-120?page=comments#action_12149 ] Chad Brandon commented on SPRING-120: -------------------------------------
Can't you just use the HibernateTemplate for that? I'd prefer not to expose Hibernate specific stuff on the DAOs (since we'd like to support more than Hibernate at some point). > DAOs should also contain rebind(Object) and rebind(Collection) methods > ---------------------------------------------------------------------- > > Key: SPRING-120 > URL: http://jira.andromda.org/browse/SPRING-120 > Project: Spring Cartridge > Type: Improvement > Versions: 3.1RC1 > Reporter: Peter Friese > Assignee: Chad Brandon > Fix For: 3.1RC1 > > If working with detached objects, one needs a way to be able to re-attach the > detached objects to the session. The hibernate guys suggest using > session.lock(object, LockMode.NONE) to achieve this. > I suggest adding rebind(Object) and rebind(Collection) methods. In fact, > they'll look very similar to the already existing update() methods. ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl