I've configured two Java classes, one that extends another, and have mapped
them to two SQL tables, one corresponding to each class.  The tables share a
common primary key.  I can query the subclass and recieve an object that
includes all data from the tables representing both the super and subclasses.
This works great.

But I can't insert or update with these objects.  I want to work primarily with
the subclass.  When I create a new Java object from the subclass and insert it,
I get a null pointer exception, from this point:

    org.exolab.castor.persist.TransactionContext.create()

Any suggestions?

Also, when I call update(), or simply modify the object within a transaction, I
get an error

Caused by: org.exolab.castor.jdo.ObjectModifiedException: Transaction aborted:
Object of type com.xmlmodeling.portal.data.PortalUser with identity 1 has been
modified by a concurrent transaction at
org.exolab.castor.jdo.engine.SQLEngine.store(Unknown Source)

I saw a note that I must implement the jdo Timestampable interface for the
superclass of an inheritance structure, so I've done that.  But I don't
understand this error about concurrent transaction.  I only have one
transaction running.  I'm guessing there is something internal to JDO handling
updates to the two tables representing this object.

Thanks for any help on understanding the internals of JDO inheritance
processing!

Regards,
  Dave Carlson

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to