OSSEZ-11 创建一个新表用于保存 USCIS 的所有处理中心名称

This commit is contained in:
YuCheng Hu 2017-09-25 16:51:30 -04:00
parent e445671f13
commit 17b8e89009
4 changed files with 84 additions and 0 deletions

View File

@ -0,0 +1,46 @@
package com.usvisatrack.core.dao.model;
import com.usvisatrack.core.common.DataObject;
import com.usvisatrack.core.dao.model.data.uscisServiceCenterType;
/**
* UscisForm ORM
*
* @author YuCheng Hu
*
*/
public class UscisServiceCenter extends DataObject {
private String uscisServiceCenterCode;
private String uscisServiceCenterName;
private uscisServiceCenterType uscisServiceCenterType;
public UscisServiceCenter() {
}
public String getUscisServiceCenterCode() {
return uscisServiceCenterCode;
}
public void setUscisServiceCenterCode(String uscisServiceCenterCode) {
this.uscisServiceCenterCode = uscisServiceCenterCode;
}
public String getUscisServiceCenterName() {
return uscisServiceCenterName;
}
public void setUscisServiceCenterName(String uscisServiceCenterName) {
this.uscisServiceCenterName = uscisServiceCenterName;
}
public uscisServiceCenterType getUscisServiceCenterType() {
return uscisServiceCenterType;
}
public void setUscisServiceCenterType(uscisServiceCenterType uscisServiceCenterType) {
this.uscisServiceCenterType = uscisServiceCenterType;
}
}

View File

@ -0,0 +1,11 @@
package com.usvisatrack.core.dao.model.data;
/**
* uscisServiceCenterType Enum
*
* @author YuCheng Hu
*
*/
public enum uscisServiceCenterType {
SERVICE_CENTER, FIELD_OFFICE
}

View File

@ -0,0 +1,26 @@
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="com.usvisatrack.core.dao.model">
<class name="UscisServiceCenter" table="uscis_service_center" catalog="northtecom_usvisatrack">
<id name="id" type="long">
<column name="uscis_service_center_id" />
<generator class="identity" />
</id>
<property name="uscisServiceCenterCode" type="string">
<column name="uscis_service_center_code" length="12" />
</property>
<property name="uscisServiceCenterName" type="string">
<column name="uscis_service_center_name" length="1024" />
</property>
<property name="uscisServiceCenterType" column="uscis_service_center_type">
<type name="org.hibernate.type.EnumType">
<param name="enumClass">com.usvisatrack.core.dao.model.data.VisaStatus</param>
</type>
</property>
</class>
</hibernate-mapping>

View File

@ -33,6 +33,7 @@
<mapping resource="hbm/UscisCaseStatus.hbm.xml" />
<mapping resource="hbm/UscisForm.hbm.xml" />
<mapping resource="hbm/UscisFormClassification.hbm.xml" />
<mapping resource="hbm/UscisServiceCenter.hbm.xml" />
<mapping resource="hbm/USEmbassy.hbm.xml" />
<mapping resource="hbm/User.hbm.xml" />
<mapping resource="hbm/Visa.hbm.xml" />