속성 or 필드를 전송하고 싶지 않을 때 사용합니다.
보통 비밀번호 확인 필드에서 많이 사용되네요.
@Entity
public class Employee {
@Id int id;
@Transient User currentUser;
...
}
ref : docs.jboss.org/hibernate/jpa/2.1/api/javax/persistence/Transient.html
'Spring Boot' 카테고리의 다른 글
[Spring] CrudRepository vs JpaRepository (0) | 2021.10.13 |
---|---|
[Spring] 매일 자정 특정 동작 수행하기 (schedule, cron) (0) | 2021.10.12 |
[Spring] @Controller vs @RestController (0) | 2021.09.17 |
[JPA] FetchType Eager와 Lazy 차이점 (0) | 2021.04.30 |
[Spring Boot] Hello World 프로젝트 생성 (0) | 2021.04.13 |