【发布时间】:2023-03-10 23:13:01
【问题描述】:
如果我们使用
@Column(name="birth_date", nullable=false, length=19)
public Date getBirthDate() {
return this.birthDate;
}
而不是
@Temporal(TemporalType.TIMESTAMP)
@Column(name="birth_date", nullable=false, length=19)
public Date getBirthDate() {
return this.birthDate;
}
如果我们使用没有@Temporal注解的日期列属性会有副作用吗?
【问题讨论】:
-
我将在这个问题中添加一个与 f:convertDateTime 的比较...问候。
标签: java hibernate jakarta-ee