• 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
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!