mariadb datetime이고 java에서 LocalDateTime startDt; 에서 startDt에 현재를 입력하는 예제
import java.time.LocalDateTime;
public class SampleEntity {
private Long id;
private LocalDateTime startDt;
// Getter & Setter
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public LocalDateTime getStartDt() {
return startDt;
}
public void setStartDt(LocalDateTime startDt) {
this.startDt = startDt;
}
}