Dependent object can’t be loaded
implicitly.
This question has been really asked many
time. Please check the archive.
Thomas
-----Original Message-----
>From: Holger Hahn [mailto:[EMAIL PROTECTED]]
>Sent: Friday, September 21, 2001 8:56 AM
>To: [EMAIL PROTECTED]
>Subject: [castor-dev] Problem on iterating over dependent data (Could not
find mapping for class ...)
>
>Hi,
>
>I inserted
following code at the end of jdo.Test.java:
>
>db.begin();
>OQLQuery query =
db.getOQLQuery( "SELECT t FROM myapp.ProdDetail t");
>results =
query.execute();
>while (
results.hasMore() )
>
ProductDetail tmp = (ProductDetail) results.next();
>db.commit();
>following error
was caused:
>
>[test]
org.exolab.castor.jdo.QueryException: Could not find mapping for class
myapp.Product
>[test]
org.exolab.castor.jdo.QueryException: Could not find mapping for class
myapp.Product
>[test] at
org.exolab.castor.jdo.oql.ParseTreeWalker.checkFromPart(ParseTreeWalker.java:302)
>[test] at
org.exolab.castor.jdo.oql.ParseTreeWalker.checkErrors(ParseTreeWalker.java:219)
>[test] at
org.exolab.castor.jdo.oql.ParseTreeWalker.<init>(ParseTreeWalker.java:134)
>[test] at
org.exolab.castor.jdo.engine.OQLQueryImpl.create(OQLQueryImpl.java:273)
>[test] at
org.exolab.castor.jdo.engine.DatabaseImpl.getOQLQuery(DatabaseImpl.java:438)
>[test] at
com.wearix.etn.Test.CastorTest.run(CastorTest.java:90)
>[test] at
com.wearix.etn.Test.CastorTest.main(CastorTest.java:51)
>may it be a bug?
>
>bye, Holger
>
|