• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Use in DAO in hibernate CallBack such as PreRemove

 
avihai marchiano
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I understand that the entity manager is fragile state during the call back listner stage.

So i wonder what can i do if i want to save an object during PreRemove event.

Now , i obtain my DAO in this step and use it and it work , but as i said above i understood that this is not a good practice

I work with Ejb3 (Jboss 4.2 , JPA)

Thank you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic