Did anyone think smartly in order to change question results in a similar way, like specifying in hibernate?
All I can think is that each result line has been returned after query. What is any other way?
For constructor projections (like new DTO (arg1, arg2)) it can be defined in JPQL query, but how about other cases?
My use case is low:
I am working on this one for one, but I am still unable to work with JPAs properly. This is difficult for constructor projection, because I have to give not only the result values to query expressions.
Normally in the case of other uses, using a factory method for the JavaBin population (public blank construction charge and setter-based population), object creation etc.
This is possible.
Comments
Post a Comment