如果我們使用的缺席@Temporal註釋的休眠
@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 ...關心。 –