I use JPA2 and Hibernate 3.6 as provider.
I have some code like this:
final List<Object[]> result = entityManager.createQuery("SELECT qt, tt FROM ...").getResultList();
I have a converter who transform the list of Object[] to list of SimpleClass, which contains my qt and tt entity.
Is is possible to do something like this in JPA 2 ? (In C# with linq, it's possible)
final List<SimpleClass> result = entityManager.createQuery("SELECT new SimpleClass(qt, tt) FROM ...").getResultList();
Thanks.