Код: Выделить всё
@Transactional(readOnly = true)
public interface AccountRepository extends JpaRepository {
@Query("")
List findByCustomer(Customer customer);
}
Подробнее здесь: https://stackoverflow.com/questions/118 ... g-data-jpa
Код: Выделить всё
@Transactional(readOnly = true)
public interface AccountRepository extends JpaRepository {
@Query("")
List findByCustomer(Customer customer);
}