On Wed, 12 Dec 2001, Oliver Hutchison wrote:
> Here's an excerpt from my mapping file:
>
> <mapping>
> <class name="ourcommunity.org.dao.NFPOrgDO" identity="id"
> key-generator="IDENTITY">
> <cache-type type="unlimited" />
> <map-to table="ORG" />
>
> <field name="id" type="integer">
> <sql name="ID" type="integer"/>
> </field>
>
> ...
>
> it works fine for me. Perhaps if you include a bit more detail with your
> post people will have a closer look at it. It would help if you would
> include the stack trace for the mapping exception you get and also code
> for the com.quigley.dashboard.Account object would be good too.
Here's a relevant stack trace:
org.exolab.castor.jdo.QueryException: Could not find mapping for class
com.quigley.dashboard.Account
at
org.exolab.castor.jdo.oql.ParseTreeWalker.checkFromPart(ParseTreeWalker.java:302)
at
org.exolab.castor.jdo.oql.ParseTreeWalker.checkErrors(ParseTreeWalker.java:219)
at
org.exolab.castor.jdo.oql.ParseTreeWalker.<init>(ParseTreeWalker.java:134)
at org.exolab.castor.jdo.engine.OQLQueryImpl.create(OQLQueryImpl.java:274)
at
org.exolab.castor.jdo.engine.DatabaseImpl.getOQLQuery(DatabaseImpl.java:439)
at
com.quigley.dashboard.servlet.action.LoginAction.execute(LoginAction.java:
The com.quigley.dashboard.Account class is a simple JavaBean.
The OQL query being attempted in the above stack trace is:
String query = "SELECT a FROM com.quigley.dashboard.Account a "
+ "WHERE id=$1";
OQLQuery oql = db.getOQLQuery(query);
oql.bind(id);
Let me know if this looks familiar to anyone.
And the 0.9.3.9 release did not help. That was the first thing I tried.
Michael
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev