如果我们使用什么呢?
@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
注释的情况下使用日期列属性,会有什么副作用吗?