hql « POJO « JPA Q&A





1. hibernate define class from multiple columns in multiple tables    stackoverflow.com

i have a class with some datafields:

class Call{
roomId
roomDisplay
roomLocation
typeId
name
staffAidId
}
now i would like to map this using hibernate annotations in java but the original sql query that i used was something like this:
SELECT 
 ...

2. Transformers for SQL to return non entity pojo class    stackoverflow.com

hi i am trying to return non entity class of the resulting query using Transformers in hibernate. My pojo class is Hibernate code is

    public class TestPojo {

  ...