|
| Re: JPQL validation error: AS in SELECT (with constructor expession) [message #900407 is a reply to message #900219] |
Mon, 06 August 2012 17:25  |
Pascal Filion Messages: 3 Registered: July 2009 |
Junior Member |
|
|
Hi Karsten,
It is true JPA 2.0 added support to identify a select expression with a result variable but the spec does not allow to use it inside of a select item. That means the first CASE expression defined as a constructor item cannot be identified with a result variable. In your query, a result variable can only be used to identify the entire constructor expression.
I hope this helps.
|
|
|
Powered by
FUDForum. Page generated in 0.14797 seconds