So make a copy of the db object and use that as your prototype. You can use serialization to do a quick "deep" clone of the object
On Apr 1, 2010 5:12 PM, "Jeffrey Schneller" <[email protected]> wrote: Because the objects have transient properties on them that are set by another process. Basically the object is pulled from the db to create a shell/container and the transient properties are filled in at a later time and may be different. Not a great example but, the object is a survey and the transient properties are the answers that a user will provide. I want to get the same survey twice but allow the transient properties to have different values. If it is the same object, I can't do this. The following setting seems to do the trick. The problem is that after some amount of time, everything locks up. It appears I am out of db connections. <filter> <filter-name>opensessioninview</filter-name> <filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class> <init-param> <param-name>singleSession</param-name> <param-value>false</param-value> </init-param> </filter> -----Original Message----- From: James Carman [mailto:[email protected]] Sent: Thursday, April 01, 2010 4:37 PM To: [email protected] Subject: Re: Hibernate - OSIV Wh...
