Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using min function in ejb ql of foreign key

 
Kedar Dravid
Ranch Hand
Posts: 333
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SELECT MIN(o.orgUnitId) FROM ProcessedOrganization o
This is query i am using ,in this case

ProcessedOrganization Entity have orgUnitId as primaryKey as well as
foreign key reference.
when i am going to generate rmic for this Ejbql then it showing error
Invalid SELECT containing either expression,parameter,or multiple elements.
I am using ejb 2.1 so there is no problem of version
can u help me?
 
JayaSiji Gopal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

Can u plz post the exact stack trace tht u received?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic