Hi,
I am trying to add the default database date,
I get the date_created updated with the date,
but date_updated as null,
If i switch the annotation I get other way,
when I add this to both, I get null for the both
what is the solution?
@Column(name="date_created")
public Date getDateCreated() {
return dateCreated;
}
@Column(name= "date_updated",updatable = false, insertable = false)
@org.hibernate.annotations.Generated(
org.hibernate.annotations.GenerationTime.ALWAYS)
public Date getDateUpdated() {
return dateUpdated;
}
|