From 17b8e890090b5a045143d0de9bfb975ec5832a62 Mon Sep 17 00:00:00 2001 From: YuCheng Hu Date: Mon, 25 Sep 2017 16:51:30 -0400 Subject: [PATCH] =?UTF-8?q?OSSEZ-11=20=E5=88=9B=E5=BB=BA=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E6=96=B0=E8=A1=A8=E7=94=A8=E4=BA=8E=E4=BF=9D=E5=AD=98=20USCIS?= =?UTF-8?q?=20=E7=9A=84=E6=89=80=E6=9C=89=E5=A4=84=E7=90=86=E4=B8=AD?= =?UTF-8?q?=E5=BF=83=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/dao/model/UscisServiceCenter.java | 46 +++++++++++++++++++ .../model/data/uscisServiceCenterType.java | 11 +++++ .../resources/hbm/UscisServiceCenter.hbm.xml | 26 +++++++++++ core/src/main/resources/hibernate.cfg.xml | 1 + 4 files changed, 84 insertions(+) create mode 100644 core/src/main/java/com/usvisatrack/core/dao/model/UscisServiceCenter.java create mode 100644 core/src/main/java/com/usvisatrack/core/dao/model/data/uscisServiceCenterType.java create mode 100644 core/src/main/resources/hbm/UscisServiceCenter.hbm.xml diff --git a/core/src/main/java/com/usvisatrack/core/dao/model/UscisServiceCenter.java b/core/src/main/java/com/usvisatrack/core/dao/model/UscisServiceCenter.java new file mode 100644 index 0000000..f63d71a --- /dev/null +++ b/core/src/main/java/com/usvisatrack/core/dao/model/UscisServiceCenter.java @@ -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; + } + +} diff --git a/core/src/main/java/com/usvisatrack/core/dao/model/data/uscisServiceCenterType.java b/core/src/main/java/com/usvisatrack/core/dao/model/data/uscisServiceCenterType.java new file mode 100644 index 0000000..45354f9 --- /dev/null +++ b/core/src/main/java/com/usvisatrack/core/dao/model/data/uscisServiceCenterType.java @@ -0,0 +1,11 @@ +package com.usvisatrack.core.dao.model.data; + +/** + * uscisServiceCenterType Enum + * + * @author YuCheng Hu + * + */ +public enum uscisServiceCenterType { + SERVICE_CENTER, FIELD_OFFICE +} \ No newline at end of file diff --git a/core/src/main/resources/hbm/UscisServiceCenter.hbm.xml b/core/src/main/resources/hbm/UscisServiceCenter.hbm.xml new file mode 100644 index 0000000..71031fb --- /dev/null +++ b/core/src/main/resources/hbm/UscisServiceCenter.hbm.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + com.usvisatrack.core.dao.model.data.VisaStatus + + + + diff --git a/core/src/main/resources/hibernate.cfg.xml b/core/src/main/resources/hibernate.cfg.xml index 96b762a..bb03c4c 100644 --- a/core/src/main/resources/hibernate.cfg.xml +++ b/core/src/main/resources/hibernate.cfg.xml @@ -33,6 +33,7 @@ +