下面列出了怎么用org.hibernate.annotations.UpdateTimestamp的API类实例代码及写法,或者点击链接到github查看源代码。
/**
* Gets the current value of modified
* @return Date the current value
*/
@Column(name = "modified")
@UpdateTimestamp
public Date getModified() {
return this.modified;
}
@Override
public void initialize(UpdateTimestamp annotation, Class<?> propertyType) {
generator = TimestampGenerators.get(propertyType);
}