Hi,
I'm using org.apache.openjpa.slice.ReplicationPolicy.Default to replicate
all my entities into a backup DB.
Here is my class structure with flat inheritance strategy:
Interface C
@Entity
@Replicated
Abstract Class AC implements C
@Entity
@Replicated
Class A extends AC
@OneToMany
List<C> list;
@Entity
@Replicated
Class X extends AC
During runtime, an instance of class A will have its list field contain many
instances of class X. When I persist it, the first DB contains the complete
number of X instances and the A instance that's holding the list. The second
DB on the other hand, only contains the A entity without the X entities.
Am I doing something wrong?
By the way, the DB that I'm using is Embedded Derby for testing purposes.
-Teody