How come you think that is invalid? Here the excerpt from JPQL BNF
constructor_expression ::= NEW constructor_name ( constructor_item
Unknown macro: {, constructor_item}
* ) constructor_item ::= single_valued_path_expression | scalar_expression | aggregate_expression | identification_variable
As you can see, identification_variable is perfectly fine there.
|