Announcement Announcement Module
Collapse
No announcement yet.
question with getHibernateTemplate().find() Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • question with getHibernateTemplate().find()

    I know I can use getHibernateTemplate().find("from test where id=?",strid) to exact data from db,now I want to know how to use two parameters with getHibernateTemplate().find(),such as
    getHibernateTemplate().find("from test where id=? and pass=?",strid,strpass),but when I compile above code,it raise error,it say can't find getHibernateTemplate().find(String,String,String)
    I want to know how to realize my code?

    Thanks!

  • #2
    It's always a good idea to have a read of the JavaDoc. The find method is overloaded and one of these provides an Object[].
    http://www.springframework.org/docs/....Object[])

    Comment

    Working...
    X