Hello,
I've got a problem with saveOrUpdate not saving anything, and the logs aren't telling me much. I'm using annotations for my entitiies, with a GenerationType of IDENTITY, but I've also tried SEQUENCE and I still don't get any updates. I can create the objects, but when I load one, change a property and call saveOrUpdate I can't see any update queries.
I get this in the logs:
22:09:38,584 DEBUG SessionImpl:221 - opened session at timestamp: 12776729785 22:09:38,586 DEBUG IdentifierValue:104 - id unsaved-value: null 22:09:38,587 DEBUG AbstractSaveEventListener:523 - detached instance of: com.example.entity.CodeExample 22:09:38,588 DEBUG DefaultSaveOrUpdateEventListener:205 - updating detached instance 22:09:38,588 DEBUG DefaultSaveOrUpdateEventListener:272 - updating [com.example.entity.CodeExample#1] 22:09:38,589 DEBUG DefaultSaveOrUpdateEventListener:323 - updating [com.example.entity.CodeExample#1] 22:09:38,589 DEBUG Cascade:116 - processing cascade ACTION_SAVE_UPDATE for: com.example.entity.CodeExample 22:09:38,590 DEBUG CascadingAction:216 - cascading to saveOrUpdate: com.example.entity.User 22:09:38,590 DEBUG DefaultSaveOrUpdateEventListener:60 - reassociated uninitialized proxy 22:09:38,590 DEBUG Cascade:151 - done processing cascade ACTION_SAVE_UPDATE for: com.example.entity.CodeExample 22:09:38,611 DEBUG SessionImpl:274 - closing session 22:09:38,611 DEBUG ConnectionManager:375 - connection already null in cleanup : no action 22:09:38,618 DEBUG SessionImpl:221 - opened session at timestamp: 12776729786 22:09:38,619 DEBUG SessionImpl:274 - closing session 22:09:38,619 DEBUG ConnectionManager:375 - connection already null in cleanup : no action 22:09:38,736 DEBUG SessionImpl:221 - opened session at timestamp: 12776729787 22:09:38,738 DEBUG SessionImpl:274 - closing session 22:09:38,738 DEBUG ConnectionManager:375 - connection already null in cleanup : no action
Any Ideas?
Cheers, Marc.
|