-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: question with getHibernateTemplate().find()
PostPosted: Fri Aug 17, 2007 11:42 am 
Newbie

Joined: Fri Jun 08, 2007 3:16 am
Posts: 11
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!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 17, 2007 1:05 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Ask Spring questions on the Spring forum, once you decide to stop using the wrapper nonsense and the Hibernate or Java Persistence API, ask here again.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 17, 2007 1:30 pm 
Expert
Expert

Joined: Fri Aug 19, 2005 2:11 pm
Posts: 628
Location: Cincinnati
Object[]

_________________
Chris

If you were at work doing this voluntarily, imagine what you'd want to see to answer a question.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.