Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Case When statement in Criteria?

 
John Bartlett
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a query written in Criteria that is in desperate need of a "Case When" statement but I cannot seem to find this functionality. Am I missing something or does Criteria have another way of doing this statement?

My basic problem is that I am pulling back a list of entities and mapping the values needed onto a UI row class for viewing, but two of the attributes on the row class are only set when a specific value is set to an attribute in the entity being pulled back.

Any help would be greatly appreciated.

Thank you,

John
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic