时间:2021-07-01 10:21:17 帮助过:41人阅读
LAST_UPDATE_DATE DATE not null, LAST_UPDATED_BY VARCHAR2(20) not null, CREATION_DATE DATE not nu
LAST_UPDATE_DATE DATE not null,
LAST_UPDATED_BY VARCHAR2(20) not null,
CREATION_DATE DATE not null,
CREATED_BY VARCHAR2(20) not null,
Oracle表的定义
通过 myeclipse for Spring 自动hibernate Revse,生成带注解的PO对象
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATION_DATE", nullable = false, length = 7)
public Date getCreationDate() {
return this.creationDate;
}
将DATE改成TIMESTAMP就能保存时间到数据库,具体原因不深究
,