-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: SaveOrUpdate not updating
PostPosted: Sun Jun 27, 2010 5:11 pm 
Newbie

Joined: Sun Jun 27, 2010 5:05 pm
Posts: 3
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.