Hibernate saveorupdate not updating

Session Impl.(Session Impl.java:247): opened session at timestamp: 5242215490777088 [TRACE] 2010-07-23 ,303 :org.

hibernate saveorupdate not updating-12hibernate saveorupdate not updating-23

User Level VO [TRACE] 2010-07-23 ,312 :org.hibernate.engine.Identifier Unsaved(Identifier Value.java:127): id unsaved-value: 0 [TRACE] 2010-07-23 ,312 :org.hibernate.Default Save Or Update Event Listener.perform Update(Default Save Or Update Event Listener.java:295): updating [com.skuldweb.domain. Default Save Or Update Event Listener.perform Update(Default Save Or Update Event Listener.java:346): updating [com.skuldweb.domain.User VO#1] [TRACE] 2010-07-23 ,311 :org.hibernate.engine. Cascade.cascade(Cascade.java:138): processing cascade ACTION_SAVE_UPDATE for: com.skuldweb.domain. User VO [TRACE] 2010-07-23 ,312 :org.hibernate.engine. Cascading Action.cascade(Cascading Action.java:239): cascading to save Or Update: com.skuldweb.domain.Page(Session.java:700): Getting page [path = 4:userprofile_form, version Number = 0] [DEBUG] 2010-07-23 ,306 :org.apache.wicket.form.persistence.

Cookie Value Cookie(Cookie Value Persister.java:210): Unable to find Cookie with name=userprofile_form.email and request URI=/upbeat-app-skuld-web/ [TRACE] 2010-07-23 ,308 :org.hibernate.engine.

User VO [DEBUG] 2010-07-23 ,314 :org.apache.wicket. Request Request Target(Request Cycle.java:644): replacing request target org.apache.wicket.request.target.component.listener.

Listener Interface Request [email protected][Page class = com.user. Flushing will occur automatically when the session is committed, but if you have a faulty transaction configuration, you may end up committing the JDBC connection but not committing the transaction tied to the Hibernate session. It causes the session never to flush automatically - which is usually what you want to do in a read-only transaction, not when you modify data.

The SQL-output does however not display that any changes to the database has been made (UPDATE in example) and the affected record has not been updated.

I would guess it makes more sense to use update() but I save Or Update() does manage to create new records, but it does not update them.

Identifier Unsaved(Identifier Value.java:127): id unsaved-value: 0 [TRACE] 2010-07-23 ,308 :org.hibernate.