Skip to content

Glossary: Spring Boot Beyond the Basics

@Query

Also written: Query, nativeQuery

An annotation that lets you write the SQL for a repository method yourself. With `nativeQuery = true` the text is plain PostgreSQL, and `:name` placeholders are filled from `@Param` arguments.

Where the book teaches it

Related terms

@ModifyingON CONFLICT DO NOTHING