Saveorupdate not updating
NHibernate supports this model by providing the method // in the first session Cat cat = (Cat) first Session.
Load(typeof(Cat), cat Id); Cat potential Mate = new Cat(); first Session.
Save(potential Mate); // in a higher tier of the application cat.
Mate = potential Mate; // later, in a new session second Session. Update(mate); // update mate if it wants their state also updated.
has set of methods for saving and updating the values in the database.Many applications need to retrieve an object in one transaction, send it to the UI layer for manipulation, then save the changes in a new transaction.(Applications that use this kind of approach in a high-concurrency environment usually use versioned data to ensure transaction isolation.) This approach requires a slightly different programming model to the one described in the last section.hibernate template save and saveorupdate problems Hi I've gotten my spring application to work. I tried adding a new entity to the database (Hibernate) using get Hibernate Template()Or Update(splash); but if I ...Hibernate - save Or Update problem Hy, I'm using Hibernate 2.1.6 and Spring 1.1.0.