A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
EJB and other Java EE Technologies
Multiple column selection using EJB-QL
Joined: Jun 29, 2007
May 21, 2008 01:02:00
I want to select multiple columns through EJB-QL, but whenever i write that
it gives an exception saying it was expecting 'from' instead of ','.
EJB-QL is like as follows:
select m1.code, m1.text from DROP_VALUE m1 where lang=?1
Home method for this is having return type as 'Collection'
Can you please tell can we select multiple columns at a time or not throgh EJB-QL and if yes, then how todo that.
author & internet detective
Joined: May 26, 2003
May 21, 2008 18:29:00
implies that it should be possible.
I haven't tried it though and would recommend just returning m1 (the whole entity) if you having problems.
How To Ask Questions The Smart Way
Blogging on Certs:
SCEA Part 1
Part 2 & 3
Core Spring 3
TOGAF part 1
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
subject: Multiple column selection using EJB-QL
Doubts on EJB-QL
Convert this SQL to EJB QL
EJB QL: Select TOP 10
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014