Optimist lock and @Version in inheritance mapping EJB 3.0

Hi,

I磎 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

[375 byte] By [kerulea] at [2007-11-27 5:28:56]
# 1
Hi,Your assumptions are correct.Regards,-marina
jdcmarinaa at 2007-7-12 14:51:37 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...