首页>代码>Spring Boot学习(十)之Spring Boot开启声明式事务 博客源码>/springbootstudy-demo10-transactional/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, length = 5)
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;
}
}
最近下载更多
xxxjjj123 LV6
2021年7月30日
newhaijun LV16
2020年12月28日
tiansitong LV14
2020年11月3日
智慧树qwwe LV24
2018年6月1日
依韵2018 LV14
2018年4月1日
hao___feng LV5
2018年3月26日
最代码官方 LV168
2018年1月20日
最近浏览更多
907552380 LV13
2022年6月6日
dgut201841404129
2022年4月5日
暂无贡献等级
wanglinddad LV55
2021年12月30日
ᯤ⁵²¹ᴳ⁺ LV8
2021年10月11日
张伟健
2021年8月5日
暂无贡献等级
xxxjjj123 LV6
2021年7月30日
mugege123 LV6
2021年1月21日
掩饰的流沙 LV6
2021年1月6日
newhaijun LV16
2020年12月28日
tiansitong LV14
2020年11月3日

