标签: java hibernate date timestamp
如何将Hibernate.TIMESTAMP转换为java.util.Date格式?
答案 0 :(得分:0)
public void setStartDate(Date startDate) { if (startDate != null) { this.startDate = new Date(startDate.getTime()); } else { this.startDate = null; } }