Announcement Announcement Module
Collapse
No announcement yet.
Hibernate HQL Query Problem Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Hibernate HQL Query Problem

    Hello,

    I just started getting startet with Spring and Hibernate reading the "spring in action" book, the spring reference and writing a small test-programm.

    now i have a (guess a simple) problem getting some data out of my database. i use the following code snippet in my customerDAO:

    Code:
    getHibernateTemplate().find("from CUSTOMER customer where customer.lastName = ?", lastName, Hibernate.STRING);
    everything works fine, but eclipse does not know where to resolve "Hibernate.STRING"... so my question is, which package i have to include to get rid of that small problem. I did not find anything about it in the reference and the books..

    thx for help,
    sebastian

  • #2
    everything works fine
    So it runs, but eclipse complains? Your code will need:
    Code:
    import net.sf.hibernate.Hibernate;
    and your eclipse project will need to include the hibernate2.jar.

    Comment


    • #3
      thx... think that was it...

      Comment

      Working...
      X