Package cn.fantasticmao.mundo.data.jdbc
Annotation Type NativeQuery
-
@Target({METHOD,ANNOTATION_TYPE}) @Retention(RUNTIME) @Documented @Query(nativeQuery=true) public @interface NativeQuery
Annotation to declare finder native queries directly on repository methods.- Since:
- 2022-08-13
- Version:
- 1.0.6
- Author:
- fantasticmao
- See Also:
Query
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description StringcountNameAlias forQuery.countName().StringcountProjectionAlias forQuery.countProjection().StringcountQueryAlias forQuery.countQuery().StringnameAlias forQuery.name().StringvalueAlias forQuery.value().
-
-
-
Element Detail
-
value
@AliasFor(annotation=org.springframework.data.jpa.repository.Query.class) String value
Alias forQuery.value().- Returns:
- JPA query
- Default:
- ""
-
-
-
countQuery
@AliasFor(annotation=org.springframework.data.jpa.repository.Query.class) String countQuery
Alias forQuery.countQuery().- Returns:
- count query
- Default:
- ""
-
-
-
countProjection
@AliasFor(annotation=org.springframework.data.jpa.repository.Query.class) String countProjection
Alias forQuery.countProjection().- Returns:
- projection part of the count query
- Default:
- ""
-
-
-
name
@AliasFor(annotation=org.springframework.data.jpa.repository.Query.class) String name
Alias forQuery.name().- Returns:
- name of the query
- Default:
- ""
-
-
-
countName
@AliasFor(annotation=org.springframework.data.jpa.repository.Query.class) String countName
Alias forQuery.countName().- Returns:
- name of the count query
- Default:
- ""
-
-