⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 roomtype.java.svn-base

📁 一个使用ssh+ext的例子。 希望对开发这个应用的人带来好处。仔细研究里面的代码将带来很大的好处。
💻 SVN-BASE
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -