Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Wrapper class and EJBQL  RSS feed

 
Alec Lee
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I use wrapper class (e.g. Boolean instead of boolean primitive type) as the CMP field, can my EJBQL compare the wrapper class directly with literal ? e.g.

SELECT ... FROM ... WHERE a.booleanWrapperType = TRUE
SELECT ... FROM ... WHERE a.intWrapperType >= 10

Are these correct ?
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!