How do I define a bidirectional one to one association between an abstract class and a persistent class? Please help. eg. there is an abstractClassA which has an one to one association with a persistent class. /******** PersistentClass *********/ public class PersistentClass extends TestObject { @XmlElement private AbstractClass abstract1 = null; public PersistentClass() {super(); abstract1 = (AbstractClass) new TextAbstractClass(); } public IAbstractClass getAbstract1 () {return abstract1 ; } public void setAbstract1(DisguiseRuleProcessing ruleProcessing) { this.ruleProcessing = ruleProcessing;} ================================================================= /***** AbstractClass ******/
public abstract class AbstractClass implements IAbstractClass { public static enum AbstractProcessingType {TEXT, NUMERIC, DATE, CUSTOM, OVERLOADED } private AbstractProcessingType abstractProcessingType; private PersistentClass persistentClass; public PersistentClass getPersistentClass() {return persistentClass;} public void setParentDataElement(PersistentClass persistentClass){this.persistentClass = persistentClass;}
|