• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JBOSS and Hibernate

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic