• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ignoring persistent instance-object already associated with session

 
Pramod Kumar
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

When I an doing this

session.saveOrUpdate(user);

ignoring persistent instance

object already associated with session

I am not getting any Exception and in the database values are not updating.

Thanks,
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you committing the transaction? The data won't be updated until you either flush the session or commit the transaction.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic