File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Object Relational Mapping and the fly likes JBOSS and Hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "JBOSS and Hibernate" Watch "JBOSS and Hibernate" New topic

JBOSS and Hibernate

Janis Lee

Joined: Dec 22, 2005
Posts: 27
I am trying out the sample hibernate application available with the JBOSS admin guide.
I get the following error when I try to execute a query :
[QuerySplitter] no persistent classes found for query class: from org.jboss.hibernate.adminguide.Customer order by username

Has anyone encountered this problem?
This is the query I tried to execute
Query query = hsession.createQuery("from org.jboss.hibernate.adminguide.Customer order by username");

This is my hibernate mapping file:
<class name="org.jboss.hibernate.adminguide.Customer" table="customers">
Thanks for any help forthcoming!
Jessica Sant

Joined: Oct 17, 2001
Posts: 4313

this seems like more of a hibernate problem than a JBoss AS problem, so I'm going to move it to the ObjectRelationalMapping forum -- I think they'll be able to help more there.
I agree. Here's the link:
subject: JBOSS and Hibernate
It's not a secret anymore!