반응형
JPA 어노테이션 사용 할 때 마다 정리
@Transient
- 엔티티 내 @Column 이나 @Formula 등을 사용하지 않는 필드를 선언 할 때 사용
@Query
https://stackoverflow.com/questions/21456494/spring-jpa-query-with-like
Spring JPA @Query with LIKE
I'm trying to make a method in CrudRepository that will be able to give me list of users, whose usernames are LIKE the input parameter(not only begin with, but also contains it). I tried to use met...
stackoverflow.com
반응형