发表于: 2018-05-20 18:55:38
0 1342
今天完成的事情:求职准备
@Getter
@Setter
@ToString
@MappedSuperclass
public class BaseDomain implements Serializable {
/**
* 主键
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Null(groups = VoGroup.class)
private Long id;
/**
* 创建时间
*/
@Column(name = "create_at", updatable = false, nullable = false)
@Null(groups = VoGroup.class)
private Long createAt;
/**
* 更新时间
*/
@Column(name = "update_at", nullable = false)
@Null(groups = VoGroup.class)
private Long updateAt;
}
lombok和hibernate的标签可以明显的优化
明天计划的事情:继续复盘
遇到的问题:null
收获:新知识
评论