I'm in the process of migrating a legacy application ejb application to
use openjpa.  Most of the usecases have worked quite well so far.  But I
have a use case I'm not clear on how to approach

I have a parent object with the attributes below which map to
corresponding columns in the database:
primaryKey
objectId
objectName.

The objectName contains the child's column name and the objectId
contains the child's primary key.

The legacy code had the child objects all extend the same base class.
So the method to get child objects was getBaseClass and then the
presentation tier cast that object to the appropriate type.  

Is there a way to change it so that the parent and child are aware of
each other and we can do parent.getChild1, parent.getChild2 etc...

Reply via email to