添加爬虫数据映射表

This commit is contained in:
YuCheng Hu 2017-07-25 15:09:39 -04:00
parent 8c025667bb
commit 3f011a636f
2 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,27 @@
package com.usvisatrack.core.dao.model;
import com.usvisatrack.core.common.DataObject;
/**
* USEmbassy ORM
*
* @author YuCheng Hu
*
*/
public class CheckeeVisa extends DataObject {
private Long visaID;
public CheckeeVisa() {
}
public Long getVisaID() {
return visaID;
}
public void setVisaID(Long visaID) {
this.visaID = visaID;
}
}

View File

@ -0,0 +1,16 @@
<?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="CheckeeVisa" table="checkee_visa" catalog="northtecom_usvisatrack">
<id name="id" type="long">
<column name="checkee_visa_id" />
<generator class="assigned" />
</id>
<property name="visaID" type="long">
<column name="visa_id" />
</property>
</class>
</hibernate-mapping>