What's New In Spring Data Release Gosling?
Over 300 issues fixed across 12 projects makes it pretty hard to keep track on what has happened since the last release. So here's a more detailed excerpt of some of the new features we've been cooking during the last iteration.
Ad-hoc JPA fetch graphs.
Since the Dijkstra release train we have been able to refer to the named entity graph declared on the entity through the @EntityGraph
annotation in JPA-backed repositories. In the example below this forces firstname and lastname to be loaded eagerly, while all others remain lazily loaded.
@Entity
@NamedEntityGraphs(
@NamedEntityGraph(name…