01710d846def643b99ea5271d603237a68bced7f.svn-base 2.49 KB
/*
 * Powered By bj_ivt
 * Web Site: http://www.vjivt.com
 * 
 * Since 2015 - 2016
 */

package com.bjivt.showtime.api.entity;

import javax.persistence.*;

import org.hibernate.annotations.GenericGenerator;

import java.util.*;

import com.bjivt.showtime.api.entity.*;
import com.bjivt.showtime.api.dao.*;
import com.bjivt.showtime.api.service.*;

/**
 * @author Yh.T
 * @version 1.0
 * @since 1.0
 */

@Entity
@Table(name = "tbl_level")
public class Level implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
	
	//alias
	private static final String TABLE_ALIAS = "Level";
	private static final String ALIAS_ID = "id";
	private static final String ALIAS_NAME = "名称";
	private static final String ALIAS_LEVEL = "等级";
	private static final String ALIAS_EXP_START = "起始经验值";
	private static final String ALIAS_EXP_END = "结束经验值";

	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//id
	private java.lang.Integer id;
	//名称
	private java.lang.String name;
	//等级
	private java.lang.String level;
	//起始经验值
	private java.lang.Integer expStart;
	//结束经验值
	private java.lang.Integer expEnd;


	
	@Id 
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id", unique = true, nullable = false, insertable = true, updatable = true, length = 10)
	public java.lang.Integer getId() {
		return this.id;
	}

	public void setId(java.lang.Integer value) {
		this.id = value;
	}
	
	@Column(name = "name", unique = false, nullable = false, insertable = true, updatable = true, length = 255)
	public java.lang.String getName() {
		return this.name;
	}
	
	public void setName(java.lang.String value) {
		this.name = value;
	}
	
	@Column(name = "level", unique = false, nullable = false, insertable = true, updatable = true, length = 255)
	public java.lang.String getLevel() {
		return this.level;
	}
	
	public void setLevel(java.lang.String value) {
		this.level = value;
	}
	
	@Column(name = "exp_start", unique = false, nullable = false, insertable = true, updatable = true, length = 10)
	public java.lang.Integer getExpStart() {
		return this.expStart;
	}
	
	public void setExpStart(java.lang.Integer value) {
		this.expStart = value;
	}
	
	@Column(name = "exp_end", unique = false, nullable = false, insertable = true, updatable = true, length = 10)
	public java.lang.Integer getExpEnd() {
		return this.expEnd;
	}
	
	public void setExpEnd(java.lang.Integer value) {
		this.expEnd = value;
	}
	
	
}