• Post Reply Bookmark Topic Watch Topic
  • New Topic

Error while Writing EJB Query?

 
Gowher Naik
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i am using EJB Query as
SELECT OBJECT(m) FROM Employee m WHERE ( m.salary > ?1 AND m.salary < ?2)
when i generate SQL using deploytool it says
Error while generate SQL invalide type for expression m.salary > ?1
i am using cloudspace.
Please help me
 
Herman Schelti
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi gowher,

what exact error message do you get?
Can you post the code that calls this ejb-ql?

Herman
 
A feeble attempt to tell you about our stuff that makes us money
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!