I think that this is just an issue with the declarations in the classes. In the PI classes, the address fields were declared as I*, whereas I think we really wanted them to be PI*. With this change, the address fields are instances of persistent interfaces, and there should be no problem

-- Michelle

Craig L Russell wrote:


On Jul 27, 2007, at 10:03 AM, Michelle Caisse wrote:

JPOX doesn't support embedding fields of non-persistent types even when the field-type attribute is used to specify the specific type. The TCK now uses inheritance from non-persistent interfaces, which allowed us to simplify the coding of new pc classes, but doesn't work with the embedded Address field.


This is an issue. Is JPOX able to fix this? The alternatives are not pretty, since we use both persistent classes and persistent interfaces in the model. The setAddress(IAddress) methods need to be implementable by both the persistence provider and the tck code.

Any ideas?

Craig

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:[EMAIL PROTECTED]
P.S. A good JDO? O, Gasp!


Reply via email to