Check for some examples here.
robert walker wrote:one way to accomplish this is to use constructor expression in your JPQL, so for example, you could do a
in this example, example.EmpMenu class does not have to be an entity, it can be just a pojo, it must have proper constructor to match the constructor expression
in the JPQL.
Can you please expalin your logic?