9
스프링 JpaRepository의 % Like % 쿼리
같은 쿼리를 작성하고 JpaRepository싶지만 아무것도 반환하지 않습니다. LIKE '%place%'-작동하지 않습니다. LIKE 'place' 완벽하게 작동합니다. 내 코드는 다음과 같습니다. @Repository("registerUserRepository") public interface RegisterUserRepository extendsJpaRepository<Registration,Long> { @Query("Select c from Registration c where c.place like :place") List<Registration> findByPlaceContaining(@Param("place")String place); }
110
java
jpa
spring-data-jpa