Skip to content
This repository has been archived by the owner on Jan 9, 2019. It is now read-only.

Latest commit

 

History

History
15 lines (11 loc) · 1.35 KB

README.md

File metadata and controls

15 lines (11 loc) · 1.35 KB

Spring Data JPA Usage

This sample application demonstrates the usage of Spring Data JPA repositories.

Important points in the code:

Limitations:

  • Do not use entity names that may clash with SQL reserved words: order, like, select, etc.
  • Custom queries has limited abilities, we do not match method parameter names and custom query parameter names.
  • If you want to specify like clause with wildcards and parameters in query annotation, please use concat function and named parameters like in the example: select ... where ... like concat('?', :name, '%')