package mvc.sh.entity; import javax.persistence.*; @Entity(name = "users") public class Users { public Users() { super(); } // initialValue表示主键初识值,默认为0 // allocationSize表示每次主键值增加的大小,例如设置成1,则表示每次创建新记录后自动加1,默认为50 @Id @SequenceGenerator(name = "seq_users_id", sequenceName = "seq_users_id", initialValue = 1, allocationSize = 1) @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seq_users_id") @Column(name = "id", unique = true, nullable = false) private Integer id; @Column(name = "age") private Integer age; @Column(name = "nice_name", length = 32) private String nice_name; @Column(name = "user_name", length = 32) private String user_name; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public Integer getAge() { return age; } public void setAge(Integer age) { this.age = age; } public String getNice_name() { return nice_name; } public void setNice_name(String nice_name) { this.nice_name = nice_name; } public String getUser_name() { return user_name; } public void setUser_name(String user_name) { this.user_name = user_name; } }
最近下载更多
微信网友_6263159342649344 LV7
2022年12月16日
build138 LV20
2019年6月19日
hh1017026756 LV1
2019年5月7日
swwt LV12
2019年4月12日
2309094456 LV12
2019年3月19日
我是菜菜菜 LV8
2018年12月4日
shakawjh LV3
2018年10月8日
hait69396 LV8
2018年9月13日
Winstin LV11
2018年7月20日
vip03061212 LV14
2018年7月20日
最近浏览更多
卢本伟不开挂 LV4
4月27日
WBelong LV7
2023年12月28日
凡 LV1
2023年7月28日
李亮 LV19
2023年3月7日
LITIANYU084414 LV11
2022年12月30日
微信网友_6263159342649344 LV7
2022年12月16日
zhangsq
2022年10月21日
暂无贡献等级
cqbscxh LV11
2022年9月19日
lvchengliang LV4
2022年6月15日
兰文斌 LV6
2022年5月4日