replicate « Session « JPA Q&A





1. Session.replicate() usage    forum.hibernate.org

greg_barton Post subject: Posted: Mon Jan 05, 2004 7:42 pm Pro Joined: Tue Aug 26, 2003 1:24 pm Posts: 213 Location: Dallas, TX Well, the API javadoc for Hibernate says "Persist all reachable transient objects, reusing the current identifier values." For exactly what it does, see the source. :) (net.sf.hibernate.impl.SessionImpl) I haven't seen any code examples, but I can ...

2. session.replicate()    forum.hibernate.org

hi all, i'm trying to gather some more information about session.replicate(). i'm trying to deprecate some old replication stuff i've written in the past and want to replace it with session.replicate(). i use many-to-one mappings quite often. the way i tried to use session.replicate() i either ran into the problem that hibernate told me that the object/collection was already associated with ...

3. Is this the intended behaviour of session.replicate()    forum.hibernate.org

I've been using session replicate which seems to work wonderfully in most scenarios but I have an issue with it in one particular scenario. If I have Class A and Class B that have many-to-one references to each other I can get a problem where integrity contrains are violated. If I were to insert these objects using more normal methods I ...

5. Session.replicate() into IDENTITY table ?    forum.hibernate.org

Hibernate 3.0.5 I am trying to populate an empty table whose primary key is an IDENTITY column, however I need to leave holes in the data and already know the exact object id value I wish to set. My understanding of Session.replicate() is thats the method for the job, "Persist the state of the given detached instance, reusing the current identifier ...

6. session.replicate - different results depending on debug log    forum.hibernate.org

Newbie Joined: Fri Nov 10, 2006 7:26 pm Posts: 11 I'm working on an Eclipse RCP application using Hibernate n MySQL for the primary data storage. I have a use case whereby a user will want to work remotely for a day. Sooo, the application creates a new HSQLDB on the user's local machine and I 'replicate' selected parts of the ...

7. Alternative to Session.replicate()?    forum.hibernate.org

8. Using Session.replicate with differents sessions    forum.hibernate.org

Newbie Joined: Thu Jun 21, 2007 7:41 am Posts: 1 Hibernate version: 3.2.3 Mapping documents: Code: @MappedSuperclass public abstract class AbstratoVO implements java.io.Serializable { @Id @GeneratedValue(generator="system-uuid") @GenericGenerator(name="system-uuid", strategy = "uuid") protected String id; public ...