
org.beangle.commons.entity.pojo.Code Maven / Gradle / Ivy
The newest version!
/*
* Beangle, Agile Development Scaffold and Toolkits.
*
* Copyright © 2005, The Beangle Software.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see .
*/
package org.beangle.commons.entity.pojo;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.util.Date;
import javax.persistence.Cacheable;
import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.beangle.commons.entity.TemporalOn;
import org.beangle.commons.lang.Objects;
/**
* 基础代码的基类
*
* 很对基础代码数据成员结构相似,仅在数据库中表名和列名 不一样,带都含有这些基类中规定的数据类型,所以把这种结构相似性抽出来,
* 节省代码的编制量.每个子类代码仍要有自己的类型定义和数据库映射定义. 基类和数据库表没有映射关系,仅仅是数据抽象.
*
* @author chaostone
* @version $Id: BaseCode.java May 4, 2011 7:28:27 PM chaostone $
*/
@MappedSuperclass
@Cacheable
public abstract class Code extends NumberIdObject
implements Comparable