wood burning stoves 2.0*
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
Author

JBOSS and Hibernate

Janis Lee
Greenhorn

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:
Customer.hbm.xml
<hibernate-mapping>
<class name="org.jboss.hibernate.adminguide.Customer" table="customers">
...
</hibernate-mapping>
Thanks for any help forthcoming!
Jessica Sant
Sheriff

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: http://aspose.com/file-tools
 
subject: JBOSS and Hibernate