Hibernate native SQL with Spring Data

Adding Hibernate native SQL features into your Spring Data Repository
JPA provides @NamedNativeQuery for you to use native SQL. However, the usage is not so convenient, especially when you need to map multiple entities in your native SQL. You have to define a set of SqlResultSetMapping mapping which is quite error prone...
http://borislam.blogspot.hk/2012/07/adding-hibernate-native-sql-features.html

Comments