Discussions
EJB programming & troubleshooting: Optimist lock and @Version in inheritance mapping EJB 3.0
-
Optimist lock and @Version in inheritance mapping EJB 3.0 (0 messages)
- Posted by: Yeray Santana Borges
- Posted on: May 24 2007 04:36 EDT
Hi, I´m using inheritance mapping for two entities. I need that at both entities a optimist lock using EJB 3.0 JTA. If i have a @Version annotation on the parent class, I have a optimist lock on the subclasses too? If i using Join tables for mapping the inheritance, the parent table will have a version column but not in the tables of the subclasses