4 Commits

Author SHA1 Message Date
Oliver Gierke
b039194e62 #330 - Polished README on JPA 2.1 examples for manual result set mappings. 2018-05-09 16:47:40 +02:00
Thomas Darimont
9ab1ae1fe6 #330 - Demonstrate usage of JPA 2.1 @SqlResultSetMapping.
Sometimes, e.g. for analytics, it is handy to be able to return a different entity result type from a Repository query method than the base Repository entity type or an interface based projection.

This demonstrates how to use a custom @SqlResultSetMapping in combination with @ColumnResult introduced in JPA 2.1.
2018-05-09 16:24:04 +02:00
Oliver Gierke
089ea83b01 Adapted JPA 2.1 example to latest changes in Spring Data JPA.
Changed method to derive the stored procedure metadata to be named after the stored procedure so that the name doesn't have to be customized on the annotation.

Switched to Spring Data JPA master branch artifact as the stored procedure support has been merged recently.
2014-04-28 12:49:17 +02:00
Thomas Darimont
466e4d40ba Added example for JPA 2.1 stored procedure support. 2014-04-24 14:50:12 +02:00