Add support for repository query method projections.
JDBC repository methods now support interface and DTO projections by specifying either the projection type as return type or using generics and providing a Class parameter to query methods. Closes #971 Original pull request #980
This commit is contained in:
committed by
Jens Schauder
parent
fc92bd5b60
commit
b3a2925573
@@ -1,7 +1,7 @@
|
||||
[[jdbc.repositories]]
|
||||
= JDBC Repositories
|
||||
|
||||
This chapter points out the specialties for repository support for JDBC. This builds on the core repository support explained in <<repositories>>.
|
||||
This chapter points out the specialties for repository support for JDBC.This builds on the core repository support explained in <<repositories>>.
|
||||
You should have a sound understanding of the basic concepts explained there.
|
||||
|
||||
[[jdbc.why]]
|
||||
@@ -696,6 +696,8 @@ You can specify the following return types:
|
||||
* `int` (updated record count)
|
||||
* `boolean`(whether a record was updated)
|
||||
|
||||
include::{spring-data-commons-docs}/repository-projections.adoc[leveloffset=+2]
|
||||
|
||||
[[jdbc.mybatis]]
|
||||
== MyBatis Integration
|
||||
|
||||
|
||||
Reference in New Issue
Block a user