Ignore:
Timestamp:
01/16/22 15:29:49 (2 years ago)
Author:
Petar Partaloski <ppartaloski@…>
Branches:
main
Children:
7bc8942
Parents:
7a0bf79
Message:

Controller, Repository and Service layer improvements, Entity updating

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/wediscussmovies/project/repository/PersonRepository.java

    r7a0bf79 r2a5d6a3  
    1313public interface PersonRepository extends JpaRepository<Person, Integer> {
    1414    public List<Person> findAllByPersonType(PersonType type);
     15    public List<Person> findAllByPersonTypeAndNameLike(PersonType type, String name);
     16    public List<Person> findAllByPersonTypeAndSurnameLike(PersonType type, String surname);
    1517    public Optional<Person> findPersonByPerson_idAndPersonType(Integer id, PersonType type);
    1618}
Note: See TracChangeset for help on using the changeset viewer.