[Spring boot]@Query JPQL where문에서 문자열과 필드 값 비교하는 방법

Chae Eun Kim·2023년 3월 16일
0

spring boot

목록 보기
3/5

@Query JPQL where문에서 문자열과 필드 값 비교하는 방법은 아래와 같다.

@Query("select count(be) from Bid be where be.state != 'CANCEL'")
int countByRequestId(@Param("requestId") Long requestId);

0개의 댓글