• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate, Spring and Sybase

 
David Ratliff
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everyone,

I am working on my first Hibernate project and I am having some problems that I just cannot figure out.

I have a simple DAO that calls a hibernate template. I have 2 classes that I use a join to link. I have made similar tests work using MS-SQL.
I would like to know if anyone has any experience working with Sybase ASE 15.0 and the JTDS driver or the jConnect Driver.

Is it my code? My understanding (am I missing something)? Or is this just a problem?

Edit: Helps when you add the error message

Error Message:

2010-07-01 08:09:42,011 [tomcat-http--2] ERROR org.hennepinsheriff.jailroster.dao.SearchDAOImpl.nameSearch(SearchDAOImpl.java:311) - Error Logging: org.springframework.orm.hibernate3.HibernateQueryException: Book.bookInfo is not mapped [ from org.hennepinsheriff.jailroster.business.Book, Book.bookInfo as i where Book.booknum = i.booknum and i.bookDate >= ?]; nested exception is org.hibernate.hql.ast.QuerySyntaxException: Book.bookInfo is not mapped [ from org.hennepinsheriff.jailroster.business.Book, Book.bookInfo as i where Book.booknum = i.booknum and i.bookDate >= ?]


DAO snippet:



Book Class



Book Info Class


Any help is greatly appreciated.

Thank you

Dave
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic