• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

EJB QL

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author & internet detective
Posts: 40747
827
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Conviently, this problem is now solved. See Pete's other thread for the solution.
 
Don't count your weasels before they've popped. And now for a mulberry bush related tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic