Package org.openurp.base.model
Class AbstractBaseInfo
- java.lang.Object
-
- org.beangle.commons.entity.pojo.NumberIdObject<T>
-
- org.openurp.base.model.NumberIdTimeObject<Integer>
-
- org.openurp.base.model.AbstractBaseInfo
-
- All Implemented Interfaces:
Serializable,Comparable<BaseInfo>,org.beangle.commons.entity.Entity<Integer>,BaseInfo
- Direct Known Subclasses:
Building,Campus,Department,Room
@MappedSuperclass public abstract class AbstractBaseInfo extends NumberIdTimeObject<Integer> implements BaseInfo
基础信息基类
提供部门、校区、教学楼、教室等四个信息的公共部分,
一共7个属性,其中id为非业务主键,code为业务编码- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected DatebeginOn生效时间protected Stringcode基础信息编码protected DateendOn失效时间protected StringenName基础信息英文名protected Stringname基础信息名称protected Stringremark备注protected StringshortName基础信息简称-
Fields inherited from class org.openurp.base.model.NumberIdTimeObject
updatedAt
-
-
Constructor Summary
Constructors Constructor Description AbstractBaseInfo()AbstractBaseInfo(Integer id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(BaseInfo myClass)DategetBeginOn()获得起始时间StringgetCode()获得代码DategetEndOn()获得结束日期StringgetEnName()获得英文名StringgetName()获得名称StringgetRemark()获得备注StringgetShortName()获得简称voidsetBeginOn(Date beginOn)设置起始日期voidsetCode(String code)设置代码voidsetEndOn(Date endOn)设置结束日期voidsetEnName(String enName)设置英文名voidsetName(String name)设置名称voidsetRemark(String remark)设置备注voidsetShortName(String shortName)设置简称StringtoString()-
Methods inherited from class org.openurp.base.model.NumberIdTimeObject
getUpdatedAt, setUpdatedAt
-
Methods inherited from class org.beangle.commons.entity.pojo.NumberIdObject
equals, getId, hashCode, isPersisted, isTransient, setId
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.openurp.base.model.BaseInfo
getUpdatedAt, setUpdatedAt
-
-
-
-
Field Detail
-
code
@NotNull @Size(max=100) protected String code
基础信息编码
-
name
@NotNull @Size(max=255) protected String name
基础信息名称
-
enName
@Size(max=500) protected String enName
基础信息英文名
-
shortName
@Size(max=255) protected String shortName
基础信息简称
-
remark
@Size(max=500) protected String remark
备注
-
beginOn
@NotNull protected Date beginOn
生效时间
-
endOn
protected Date endOn
失效时间
-
-
Constructor Detail
-
AbstractBaseInfo
public AbstractBaseInfo()
-
AbstractBaseInfo
public AbstractBaseInfo(Integer id)
-
-
Method Detail
-
getShortName
public String getShortName()
Description copied from interface:BaseInfo获得简称- Specified by:
getShortNamein interfaceBaseInfo- Returns:
- 简称
-
setShortName
public void setShortName(String shortName)
Description copied from interface:BaseInfo设置简称- Specified by:
setShortNamein interfaceBaseInfo- Parameters:
shortName- 简称
-
getBeginOn
public Date getBeginOn()
Description copied from interface:BaseInfo获得起始时间- Specified by:
getBeginOnin interfaceBaseInfo- Returns:
- 起始日期
-
setBeginOn
public void setBeginOn(Date beginOn)
Description copied from interface:BaseInfo设置起始日期- Specified by:
setBeginOnin interfaceBaseInfo
-
compareTo
public int compareTo(BaseInfo myClass)
- Specified by:
compareToin interfaceComparable<BaseInfo>- See Also:
Comparable.compareTo(Object)
-
toString
public String toString()
- Overrides:
toStringin classObject- See Also:
Object.toString()
-
-