-->
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.  [ 2 posts ] 
Author Message
 Post subject: query question using the session.find(query,object[],types[]
PostPosted: Fri Jun 18, 2004 3:50 am 
Newbie

Joined: Tue Feb 03, 2004 3:03 am
Posts: 12
the Cat persistent object has two fileds: catId and name,when using name as the search condition ,it return the results,but when using the catId ,it return the error:

net.sf.hibernate.QueryException: Number of positional parameter types (0 does not match number of positional parameters (1)

at net.sf.hibernate.engine.QueryParameters.validateParameters(QueryParameters.java:134)

at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1530)

at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1520)


why?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 18, 2004 4:06 am 
Newbie

Joined: Tue Feb 03, 2004 3:03 am
Posts: 12
just now,I check my code,find that I forget to deal with the Long type.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.