首页>代码>Spring Boot学习(七)之Web应用使用Spring-data-jpa让数据访问 博客源码分享>/springbootstudy-demo7-spring-data-jpa/src/main/java/com/xiaojingg/domain/User.java
package com.xiaojingg.domain; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; /** * 筱进GG */ @Entity public class User { @Id @GeneratedValue private Long id; @Column(nullable = false) private String name; @Column(nullable = false) private Integer age; public User(){} public User(String name, Integer age) { this.name = name; this.age = age; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Integer getAge() { return age; } public void setAge(Integer age) { this.age = age; } }

F丶S丶H LV7
2023年1月29日
werqjkl LV5
2022年9月30日
Sunsi12345 LV8
2022年6月8日
taskmaster LV6
2022年1月2日
939867966 LV1
2021年2月25日
usernamegs LV10
2021年1月25日
guoguoguo520520 LV1
2020年12月29日
562650727 LV10
2020年6月20日
weixiao LV6
2020年6月15日
幻羽揚 LV4
2020年6月9日