@Retention(value=RUNTIME) @Target(value=METHOD) @Documented public @interface Query
NamedParameterJdbcTemplate
. Those
parameters will get bound to the arguments of the annotated method.Modifier and Type | Required Element and Description |
---|---|
String |
value
The SQL statement to execute when the annotated method gets invoked.
|
Modifier and Type | Optional Element and Description |
---|---|
Class<? extends org.springframework.jdbc.core.RowMapper> |
rowMapperClass
Optional
RowMapper to use to convert the result of the query to domain class instances. |
public abstract String value
public abstract Class<? extends org.springframework.jdbc.core.RowMapper> rowMapperClass
RowMapper
to use to convert the result of the query to domain class instances.Copyright © 2017–2018 Pivotal Software, Inc.. All rights reserved.