ZK « Map « JPA Q&A





1. error hibernate mapping    zkoss.org

11 May 2011 05:02:00 GMT 11 May 2011 05:02:00 GMT i've got three tables user, menuuser, userprivilegeuserprivilege had 2 foreign key reference userid (table user)menuid(table menuuser) ive got error like this when login to my application: SEVERE: >>org.hibernate.hql.ast.QuerySyntaxException: User is not mapped [from User where userid like '%admin%'] >> at org.hibernate.hql.ast.util.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.java:181) >> at org.hibernate.hql.ast.tree.FromElementFactory.addFromElement(FromElementFactory.java:110) >> at org.hibernate.hql.ast.tree.FromClause.addFromElement(FromClause.java:93) >> at org.hibernate.hql.ast.HqlSqlWalker.createFromElement(HqlSqlWalker.java:277) >> ...