Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

mongorepository spring boot custom query

public interface PersonRepository extends PagingAndSortingRepository<Person, String> {

    List<Person> findByLastname(String lastname);

    Page<Person> findByFirstname(String firstname, Pageable pageable);

    Person findByShippingAddresses(Address address);

}     
Source by docs.spring.io #
 
PREVIOUS NEXT
Tagged: #mongorepository #spring #boot #custom #query
ADD COMMENT
Topic
Name
3+3 =