BaseEntity 모든 엔티티에서 공통으로 있는 객체가 있으면 BaseEntity를 정의해서 활용할 수 있다. @Getter @MappedSuperclass @NoArgsConstructor(access = AccessLevel.PROTECTED) public class BaseEntity { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) // Primary key 생성해주는 어노테이션, @Id 선언 후 사용 private Long id; public BaseEntity(Long id) { super(); this.id = id; } public boolean isNew() { return this.id == null; } public void se..