首页>代码>ssh实现用户管理系统的增删改查>/SpringMVC/src/com/jxust/svsh/entity/Person.java
package com.jxust.svsh.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 个人信息实体类
 * 注解方式配置对应数据表
 * @author Peng
 * @Date2016年12月8日下午2:54:52
 */
@Entity
@Table(name = "person")
public class Person {

	private String id;// 主键id
	private String name;// 姓名
	private String idCard;// 身份证号
	private String phone;// 手机号
	private String address;// 地址

	public Person() {
		super();
	}

	public Person(String name, String idCard, String phone, String address) {
		super();
		this.name = name;
		this.idCard = idCard;
		this.phone = phone;
		this.address = address;
	}

	@Id
	@Column(name = "id", nullable = false, unique = true)
	@GenericGenerator(name = "generator", strategy = "uuid")
	@GeneratedValue(generator = "generator")
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "name", nullable = false, length = 32)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "idCard", nullable = false, length = 32)
	public String getIdCard() {
		return idCard;
	}

	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}

	@Column(name = "phone", nullable = false, length = 32)
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getAddress() {
		return address;
	}

	@Column(name = "address", nullable = false, length = 32)
	public void setAddress(String address) {
		this.address = address;
	}

	@Override
	public String toString() {
		return "Person [id=" + id + ", name=" + name + ", idCard=" + idCard + ", phone=" + phone + ", address="
				+ address + "]";
	}

}
最近下载更多
zhengwei_147  LV1 2023年6月11日
3516569014  LV5 2023年5月7日
lvchengliang  LV4 2022年6月15日
1798139161  LV4 2022年2月7日
大彬  LV2 2021年12月13日
漫长的白日梦  LV8 2021年12月4日
没有鱼  LV3 2021年8月17日
8  LV1 2021年6月24日
吹星落雨  LV1 2021年6月22日
和味道江森  LV1 2021年4月17日
最近浏览更多
asddwh  LV12 2023年12月25日
WBelong  LV7 2023年12月11日
Henew168  LV2 2023年11月19日
yemmmm666  LV1 2023年6月12日
zhengwei_147  LV1 2023年6月11日
张真狗  LV9 2023年5月22日
3516569014  LV5 2023年5月7日
星辰xc  LV2 2023年5月7日
兢兢业业 2023年4月29日
暂无贡献等级
jierffff  LV2 2023年4月20日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友