首页>代码>java学籍后台管理系统>/SchoolRollSystem/src/com/two/studentRoll/model/Dormitory.java
package com.two.studentRoll.model;

import java.sql.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 住宿记录
 * 
 * @author The bird is my most loving smile
 * @version 1.0
 * @created 19-二月-2014 13:36:50
 */
@Entity
@Table(name = "t_dormitory")
public class Dormitory {

	/**
	 * OID
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "pk_id")
	private int id;
	/**
	 * 住宿地址
	 */
	@Column(name = "f_address")
	private String address;
	/**
	 * 总计金额
	 */
	@Column(name = "f_allMoney")
	private int allMoney;
	/**
	 * 到期时间
	 */
	@Column(name = "f_endTime")
	private Date endTime;
	/**
	 * 入住时间
	 */
	@Column(name = "f_liveInTime")
	private Date liveInTime;
	/**
	 * 缴费次数
	 */
	@Column(name = "f_moneyCount")
	private int moneyCount;
	/**
	 * 退宿时间
	 */
	@Column(name = "f_outTime")
	private Date outTime;
	/**
	 * 租金
	 */
	@Column(name = "f_rentMoney")
	private int rentMoney;
	/**
	 * 学生对象
	 */
	@ManyToOne
	@JoinColumn(name = "fk_student_id")
	private Student student;

	public Dormitory() {

	}

	public int getId() {
		return id;
	}

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

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public int getAllMoney() {
		return allMoney;
	}

	public void setAllMoney(int allMoney) {
		this.allMoney = allMoney;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Date getLiveInTime() {
		return liveInTime;
	}

	public void setLiveInTime(Date liveInTime) {
		this.liveInTime = liveInTime;
	}

	public int getMoneyCount() {
		return moneyCount;
	}

	public void setMoneyCount(int moneyCount) {
		this.moneyCount = moneyCount;
	}

	public Date getOutTime() {
		return outTime;
	}

	public void setOutTime(Date outTime) {
		this.outTime = outTime;
	}

	public int getRentMoney() {
		return rentMoney;
	}

	public void setRentMoney(int rentMoney) {
		this.rentMoney = rentMoney;
	}

	public Student getStudent() {
		return student;
	}

	public void setStudent(Student student) {
		this.student = student;
	}

	@Override
	public String toString() {
		return "Dormitory [id=" + id + ", address=" + address + ", allMoney="
				+ allMoney + ", endTime=" + endTime + ", liveInTime="
				+ liveInTime + ", moneyCount=" + moneyCount + ", outTime="
				+ outTime + ", rentMoney=" + rentMoney + "]";
	}

}
最近下载更多
asddwh  LV12 2023年12月26日
政政123456  LV3 2023年12月10日
fesfefe  LV13 2023年9月14日
mayong1234  LV6 2023年6月14日
1455384106  LV2 2023年5月8日
康日澜  LV9 2023年3月22日
linmou  LV8 2023年3月13日
asdadd  LV1 2022年12月19日
番茄and番茄1  LV1 2022年11月20日
2089675149  LV7 2022年11月13日
最近浏览更多
最代码-宋家辉  LV61 昨天
jocelyn000  LV1 4月13日
dhcpsl  LV2 4月10日
jiuyin0919  LV1 4月1日
2131234536546  LV7 3月31日
俞佳淨 2月13日
暂无贡献等级
小黄同学  LV7 1月18日
woshixiaomu  LV2 1月9日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友