btoddb edited this page Sep 20, 2011 · 3 revisions

If I annotate a base class with @Entity, will a derived class be persisted?

No, you must annotate the derived class with @Entity and @DiscriminatorValue.

Does the object mapper perform any locking?

No, you must handle synchronization yourself using java synchronization techniques or distributed tools, like ZooKeeper or Hazelcast.