Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

SQLJPA

addressRepo.findAll();


WHERE

SQLJPA

JPA 함수쿼리 작성

public interface AddressRepo extends CrudRepository<Address, Long>{
List<Address> findBySex(String sex);
}


조회함수사용

addressRepo.findBySex("여");


...