Hi,
I have a table with a multiple field primary key part of which is a
foreign key to another table. Everything is fine when I define the
fields as simple types but when I define one of them as an object
reference I get the error below.
Can someone please let me know what this message means? Also is this
sort of definition supported and if not is there a workaround? I am
using Castor 0.9.2. on Solaris.
Thanks,
Dominic.
[java] org.exolab.castor.jdo.DataObjectAccessException: Type
conversion error: could not set value of
FieldMolder(namespace,com.msdw.futopt.expiry.namespaces.Namespace)null
inside com.msdw.futopt.expiry.namespaces.PriceableProductNamespace with
value of type java.lang.Integer
[java] at
org.exolab.castor.persist.FieldMolder.setValue(FieldMolder.java:319)
[java] at
org.exolab.castor.persist.ClassMolder.setIdentity(ClassMolder.java:2381)
[java] at
org.exolab.castor.persist.ClassMolder.load(ClassMolder.java:641)
[java] at
org.exolab.castor.persist.LockEngine.load(LockEngine.java:355)
[java] at
org.exolab.castor.persist.TransactionContext.load(TransactionContext.java:491)
[java] at
org.exolab.castor.persist.QueryResults.fetch(QueryResults.java:219)
[java] at
org.exolab.castor.jdo.engine.OQLQueryImpl$OQLEnumeration.hasMore(OQLQueryImpl.java:569)
[java] at
org.exolab.castor.jdo.engine.OQLQueryImpl$OQLEnumeration.hasMore(OQLQueryImpl.java:552)
[java] at
com.msdw.futopt.expiry.products.PriceableProductParentPersister.getPriceableProductParent(PriceableProductParentPersister.java:97)
[java] at
com.msdw.futopt.expiry.products.PriceableProductParentManagerImplCastor.getPriceableProductParent(PriceableProductParentManagerImplCastor.java:102)
[java] at
com.msdw.futopt.expiry.products.TestPriceableProductParentManager.testPriceableProductParentManager(TestPriceableProductParentManager.java:91)
[java] at
com.msdw.futopt.expiry.products.TestPriceableProductParentManager.main(TestPriceableProductParentManager.java:106)
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev