• Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB QL  RSS feed

 
Peter Matthews
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I'm trying to put together some finder methods but hit an exception which I can't figure out - just wondered if anyone could shed some light on it (would be much appreciated! ). BTW, just to let you know, I'm a novice at the EJB thing, so if I have done anything completely silly, just excuse it

EJB QL Statement:

SELECT OBJECT(h)
FROM House h WHERE h.location = ?1
AND h.bedrooms = ?2
AND h.price BETWEEN ?3 AND ?4

Parameters:

String location
int bedrooms
int minPrice
int maxPrice

Exception:

EJBQL: SELECT OBJECT(h)
FROM House h WHERE h.location = ?1
AND h.bedrooms = ?2
AND h.price BETWEEN ?3 AND ?4
Error: line(2) column(31): JDO75311: Invalid argument(s) for '='.
; requested operation cannot be completed

I have checked all datatypes and they all correspond correctly to the database datatypes. Any help would be very welcome...

Thanks again,

Pete
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37181
515
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Conviently, this problem is now solved. See Pete's other thread for the solution.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!