This demonstrates the use of JPA 2.1 fetch graphs in two ways.
1. By referencing a NamedEntityGraph declared on the Product entity
2. Declaratively defining an entity graph on a repository query method.
Original pull request: #126.
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.
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.