Results 1 to 2 of 2

Thread: HibernateTemplate need to import net.sf.hibernate.Hibernate?

  1. #1
    Join Date
    Sep 2004
    Posts
    133

    Default HibernateTemplate need to import net.sf.hibernate.Hibernate?

    Hi ....l have a question.

    Below is the example from the Spring Reference Documentation Version 1.1 , pg 104

    public class ProductDaoImpl extends HibernateDaoSupport implements ProductDao {
    public List loadProductsByCategory(String category) {
    return getHibernateTemplate().find(
    "from test.Product product where product.category=?", category,
    Hibernate.STRING);
    }
    }

    Notice that "Hibernate.STRING" in the code , but l found no "net.sf.hibernate.Hibernate" import in the HibernateTemplate.java ,
    it suppose HibernateTemplate do the import , Right ?

  2. #2
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,104

    Default

    Yes it should do the import.

Similar Threads

  1. Acegi in portlets
    By dreed in forum Security
    Replies: 37
    Last Post: Apr 27th, 2008, 06:34 AM
  2. Spring + postgres + stored procedure
    By spring_dummy in forum Data
    Replies: 6
    Last Post: Feb 27th, 2006, 03:02 PM
  3. Date Format Control within Forms
    By milestone in forum Swing
    Replies: 9
    Last Post: Oct 11th, 2005, 01:04 PM
  4. Replies: 3
    Last Post: Sep 22nd, 2005, 10:14 AM
  5. It's trouble that use hibernate by spring?
    By david4liu in forum Data
    Replies: 1
    Last Post: Sep 5th, 2005, 07:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •