Robert Zeigler <rdzeigl...arizona.edu> wrote:
> Running cayenne version 1.1B1.
> I'm trying to execute a query, and getting a
> "No DataMap found for query with root: class
> org.eledge.domain.model.User" exception thrown.
> It's just a basic query...
> SelectQuery query = new SelectQuery(User.class);
> query.setExpression(ExpressionFactory.matchExp("login",login));
> query.andExpression(ExpressionFactory.matchExp("password",pass));
> dataContext.performQuery(query);//exception occurs here.
>
> I have switched package names, but everything has been refactored to use
> the new name. All of my objects extend a base object, which in turn
> extends CayenneDataObject. The base object is not part of the cayenne
> schema (? could that be the problem?). Any thoughts on this one are
> appreciated greatly.
No, your base object doesn't matter.
Is "org.eledge.domain.model.User" your old name or your new name?
Are you sure that the DataMap is attached to a DataNode?
Did it used to work before you changed packages?
-Mike
This archive was generated by hypermail 2.0.0 : Sat Aug 07 2004 - 19:17:30 EDT