TransactionEntity.java 文件源码

java
阅读 36 收藏 0 点赞 0 评论 0

项目:api.teiler.io 作者:
/**
 * 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;
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号