去掉多余的代码,整理数据库表名称

This commit is contained in:
季圣华
2016-11-12 22:50:41 -06:00
parent c0faf19b4e
commit aba6a4f196
15 changed files with 8 additions and 135 deletions

View File

@@ -2,7 +2,7 @@
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="com.jsh.model.po.Basicuser" table="ams_t_basicuser">
<class name="com.jsh.model.po.Basicuser" table="jsh_user">
<id name="id" type="java.lang.Long">
<column name="id" />
<generator class="native" />

View File

@@ -2,7 +2,7 @@
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="com.jsh.model.po.Depot" table="ams_t_depot">
<class name="com.jsh.model.po.Depot" table="jsh_depot">
<id name="id" type="java.lang.Long">
<column name="id"/>
<generator class="native"/>

View File

@@ -2,7 +2,7 @@
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="com.jsh.model.po.Logdetails" table="ams_t_logdetails">
<class name="com.jsh.model.po.Logdetails" table="jsh_log">
<id name="id" type="java.lang.Long">
<column name="id" />
<generator class="native" />

View File

@@ -1,26 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="com.jsh.model.po.Measureunit" table="ams_t_measureunit">
<id name="id" type="java.lang.Long">
<column name="id" />
<generator class="native" />
</id>
<property name="unitname" type="java.lang.String">
<column name="unitname" length="30" not-null="true">
<comment>计量名称</comment>
</column>
</property>
<property name="description" type="java.lang.String">
<column name="description" length="500">
<comment>计量描述</comment>
</column>
</property>
<property name="isystem" type="java.lang.Short">
<column name="isystem" not-null="true">
<comment>是否系统自带 0==系统 1==非系统</comment>
</column>
</property>
</class>
</hibernate-mapping>

View File

@@ -2,7 +2,7 @@
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="com.jsh.model.po.Supplier" table="ams_t_supplier">
<class name="com.jsh.model.po.Supplier" table="jsh_supplier">
<id name="id" type="java.lang.Long">
<column name="id" />
<generator class="native"/>

View File

@@ -22,7 +22,6 @@
<!-- 对应的实体映射 -->
<mapping resource="com/jsh/model/po/Supplier.hbm.xml" />
<mapping resource="com/jsh/model/po/Measureunit.hbm.xml" />
<mapping resource="com/jsh/model/po/Logdetails.hbm.xml" />
<mapping resource="com/jsh/model/po/Department.hbm.xml" />
<mapping resource="com/jsh/model/po/Assetname.hbm.xml" />

View File

@@ -22,7 +22,6 @@
<!-- 对应的实体映射 -->
<mapping resource="com/jsh/model/po/Supplier.hbm.xml" />
<mapping resource="com/jsh/model/po/Measureunit.hbm.xml" />
<mapping resource="com/jsh/model/po/Logdetails.hbm.xml" />
<mapping resource="com/jsh/model/po/Department.hbm.xml" />
<mapping resource="com/jsh/model/po/Assetname.hbm.xml" />

View File

@@ -1 +0,0 @@
jsh123

View File

@@ -2,7 +2,7 @@
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="com.jsh.model.po.Basicuser" table="ams_t_basicuser">
<class name="com.jsh.model.po.Basicuser" table="jsh_user">
<id name="id" type="java.lang.Long">
<column name="id" />
<generator class="native" />

View File

@@ -2,7 +2,7 @@
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="com.jsh.model.po.Depot" table="ams_t_depot">
<class name="com.jsh.model.po.Depot" table="jsh_depot">
<id name="id" type="java.lang.Long">
<column name="id"/>
<generator class="native"/>

View File

@@ -2,7 +2,7 @@
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="com.jsh.model.po.Logdetails" table="ams_t_logdetails">
<class name="com.jsh.model.po.Logdetails" table="jsh_log">
<id name="id" type="java.lang.Long">
<column name="id" />
<generator class="native" />

View File

@@ -1,26 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="com.jsh.model.po.Measureunit" table="ams_t_measureunit">
<id name="id" type="java.lang.Long">
<column name="id" />
<generator class="native" />
</id>
<property name="unitname" type="java.lang.String">
<column name="unitname" length="30" not-null="true">
<comment>计量名称</comment>
</column>
</property>
<property name="description" type="java.lang.String">
<column name="description" length="500">
<comment>计量描述</comment>
</column>
</property>
<property name="isystem" type="java.lang.Short">
<column name="isystem" not-null="true">
<comment>是否系统自带 0==系统 1==非系统</comment>
</column>
</property>
</class>
</hibernate-mapping>

View File

@@ -1,72 +0,0 @@
package com.jsh.model.po;
import java.sql.Timestamp;
@SuppressWarnings("serial")
public class Measureunit implements java.io.Serializable
{
private Long id;
private String unitname;
private String description;
private Short isystem;
public Measureunit()
{
}
public Measureunit(Long id)
{
this.id = id;
}
public Measureunit(String unitname, Timestamp createtime, Long creator,
Timestamp updatetime, Long updator, String description,
Short isystem)
{
this.unitname = unitname;
this.description = description;
this.isystem = isystem;
}
public Long getId()
{
return this.id;
}
public void setId(Long id)
{
this.id = id;
}
public String getUnitname()
{
return this.unitname;
}
public void setUnitname(String unitname)
{
this.unitname = unitname;
}
public String getDescription()
{
return this.description;
}
public void setDescription(String description)
{
this.description = description;
}
public Short getIsystem()
{
return this.isystem;
}
public void setIsystem(Short isystem)
{
this.isystem = isystem;
}
}

View File

@@ -2,7 +2,7 @@
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="com.jsh.model.po.Supplier" table="ams_t_supplier">
<class name="com.jsh.model.po.Supplier" table="jsh_supplier">
<id name="id" type="java.lang.Long">
<column name="id" />
<generator class="native"/>