/**
* Sets the update-time and creation-time to {@link Instant#now()}.
* <br>
* <i>Note:</i> The creation-time will only be set if it has not been set previously.
*/
@PreUpdate
@PrePersist
public void updateTimeStamps() {
updateTime = new Timestamp(Instant.now().toEpochMilli());
if (createTime == null) {
createTime = updateTime;
}
}
PersonEntity.java 文件源码
java
阅读 38
收藏 0
点赞 0
评论 0
项目:api.teiler.io
作者:
评论列表
文章目录