SpringData series of three Repository Bean method defined specification

This section describes a method Repository Bean defined specifications.

  1, the method is not just a declaration, required to meet certain specifications.

  2, according to the Spring Data specification query method to find | read | beginning GET , when it comes to the query condition, the condition of the properties connected with the condition keyword should be noted that: the conditions required attribute capitalized .

  3, Spring Data supports the following keywords:

   

   

  4, support for cascading attribute query, if the current class has qualified property takes precedence, without the use of a cascade attribute. To use a cascade attribute with the attribute between the "_" is connected.

  Person.java
  Address.java
  PersonRepository.java

Guess you like

Origin www.cnblogs.com/morganlin/p/12000200.html