title: Returning a custom entity after JPA query
body: <p>I'm using Hibernate for SQL query. After I get a list of <code>MyEntity</code> beans, I want to create a list of <code>CustomEntity</code> beans which contain data same as MyEntity but only with the fields I want. I want to create this CustomEntity because I don't want to send back all information to the client but when I retrieve from database, I want to retrieve all information. I don't want to select columns in query. What is the correct pattern to implement this  CustomEntity bean and load values into it ?</p>