roomtype.java

来自「一个使用ssh+ext的例子。 希望对开发这个应用的人带来好处。仔细研究里面的」· Java 代码 · 共 68 行

JAVA
68
字号
package com.hotelmaster.home.domain;

import java.math.BigDecimal;
import javax.persistence.*;

import org.hibernate.annotations.GenericGenerator;
/**
 * Class description goes here.
 * 
 * @author Liang
 * @Date Apr 14, 2008
 */
@Entity
@Table(name="NHROOMTYPE")
public class RoomType {
	private String roomTypeId;
	private String roomTypeName;
	private BigDecimal roomTypeDayPrice;
	private BigDecimal roomTypeHourPrice;
	private BigDecimal roomTypePerHour;
	private Integer roomBeds;
	@Id
	@GeneratedValue(generator="assigned")
	@GenericGenerator(name="assigned",strategy="assigned")
	public String getRoomTypeId() {
		return roomTypeId;
	}
	public void setRoomTypeId(String roomTypeId) {
		this.roomTypeId = roomTypeId; //逻辑生成主键RT_...
	}
	@Column(nullable=false,length=10)
	public String getRoomTypeName() {
		return roomTypeName;
	}
	public void setRoomTypeName(String roomTypeName) {
		this.roomTypeName = roomTypeName;
	}
	@Column(nullable=false)
	
	public BigDecimal getRoomTypeDayPrice() {
		return roomTypeDayPrice;
	}
	public void setRoomTypeDayPrice(BigDecimal roomTypeDayPrice) {
		this.roomTypeDayPrice = roomTypeDayPrice;
	}
	@Column(nullable=true)
	public BigDecimal getRoomTypeHourPrice() {
		return roomTypeHourPrice;
	}
	public void setRoomTypeHourPrice(BigDecimal roomTypeHourPrice) {
		this.roomTypeHourPrice = roomTypeHourPrice;
	}
	@Column(nullable=true)
	public BigDecimal getRoomTypePerHour() {
		return roomTypePerHour;
	}
	public void setRoomTypePerHour(BigDecimal roomTypePerHour) {
		this.roomTypePerHour = roomTypePerHour;
	}
	@Column(nullable=false)
	public Integer getRoomBeds() {
		return roomBeds;
	}
	public void setRoomBeds(Integer roomBeds) {
		this.roomBeds = roomBeds;
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?