[hibernate-dev] Any change of adding generics to Hibernate specific API

Mihalcea Vlad mih_vlad at yahoo.com
Wed Apr 15 16:27:30 EDT 2015


Hi,
Although many rely on the Java Persistence API, Hibernate still offers specific features, like mapping a native SQLQuery result set to a DTO:
.setResultTransformer(Transformers.aliasToBean(DTO.class));
Is it possible to add TypedQuery and TypedSQLQuery, analogous to the JPA specs, so you can use generics with specific API?
Adding new interfaces and some overloaded Session methods wouldn't break backward compatibility.

Vlad MiIhalcea


More information about the hibernate-dev mailing list