OSSEZ-11 创建一个新表用于保存 USCIS 的所有处理中心名称
This commit is contained in:
parent
e445671f13
commit
17b8e89009
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
package com.usvisatrack.core.dao.model.data;
|
||||
|
||||
/**
|
||||
* uscisServiceCenterType Enum
|
||||
*
|
||||
* @author YuCheng Hu
|
||||
*
|
||||
*/
|
||||
public enum uscisServiceCenterType {
|
||||
SERVICE_CENTER, FIELD_OFFICE
|
||||
}
|
|
@ -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>
|
|
@ -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" />
|
||||
|
|
Loading…
Reference in New Issue