• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hibernate - updates ....

 
jay vas
Ranch Hand
Posts: 407
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys :

I finally got my inserts and selects working in hibernate.
Now Im having the problem that I cant update.




The call to "persist" results in an exception :

detached entity passed to persist: dao.Script

What is a detached entity? It seems like the hibernate update
should be easy to do since no keys need
be generated... but its giving me a lot of trouble... please help !

[Editied to fix code tags - Paul Sturrock]
[ September 27, 2006: Message edited by: Paul Sturrock ]
 
Jignesh Patel
Ranch Hand
Posts: 626
Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
call session.load(updatable.class) to make it persistent.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic