File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JBOSS and Hibernate

 
Janis Lee
Greenhorn
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4313
Android IntelliJ IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic