Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
631361fc
"src/vscode:/vscode.git/clone" did not exist on "e5fa18286374da1072b8946a3d2ce8d3830dcfc3"
Commit
631361fc
authored
Nov 12, 2016
by
季圣华
Browse files
更新数据库,修改表名称和库名称
parent
aba6a4f1
Changes
19
Expand all
Show whitespace changes
Inline
Side-by-side
WebRoot/WEB-INF/classes/com/jsh/junitest/AmsTAsset.hbm.xml
View file @
631361fc
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
Mapping file autogenerated by MyEclipse Persistence Tools
Mapping file autogenerated by MyEclipse Persistence Tools
-->
-->
<hibernate-mapping>
<hibernate-mapping>
<class
name=
"com.jsh.junitest.AmsTAsset"
table=
"
ams_t
_asset"
catalog=
"ams"
>
<class
name=
"com.jsh.junitest.AmsTAsset"
table=
"
jsh
_asset"
catalog=
"ams"
>
<id
name=
"id"
type=
"java.lang.Long"
>
<id
name=
"id"
type=
"java.lang.Long"
>
<column
name=
"id"
/>
<column
name=
"id"
/>
<generator
class=
"native"
/>
<generator
class=
"native"
/>
...
...
WebRoot/WEB-INF/classes/com/jsh/model/po/Asset.hbm.xml
View file @
631361fc
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<hibernate-mapping>
<class
name=
"com.jsh.model.po.Asset"
table=
"
ams_t
_asset"
>
<class
name=
"com.jsh.model.po.Asset"
table=
"
jsh
_asset"
>
<id
name=
"id"
type=
"java.lang.Long"
>
<id
name=
"id"
type=
"java.lang.Long"
>
<column
name=
"id"
/>
<column
name=
"id"
/>
<generator
class=
"native"
/>
<generator
class=
"native"
/>
...
...
WebRoot/WEB-INF/classes/com/jsh/model/po/Assetcategory.hbm.xml
View file @
631361fc
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<hibernate-mapping>
<class
name=
"com.jsh.model.po.Assetcategory"
table=
"
ams_t
_assetcategory"
>
<class
name=
"com.jsh.model.po.Assetcategory"
table=
"
jsh
_assetcategory"
>
<id
name=
"id"
type=
"java.lang.Long"
>
<id
name=
"id"
type=
"java.lang.Long"
>
<column
name=
"id"
/>
<column
name=
"id"
/>
<generator
class=
"native"
/>
<generator
class=
"native"
/>
...
...
WebRoot/WEB-INF/classes/com/jsh/model/po/Assetname.hbm.xml
View file @
631361fc
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<hibernate-mapping>
<class
name=
"com.jsh.model.po.Assetname"
table=
"
ams_t
_assetname"
>
<class
name=
"com.jsh.model.po.Assetname"
table=
"
jsh
_assetname"
>
<id
name=
"id"
type=
"java.lang.Long"
>
<id
name=
"id"
type=
"java.lang.Long"
>
<column
name=
"id"
/>
<column
name=
"id"
/>
<generator
class=
"native"
/>
<generator
class=
"native"
/>
...
...
WebRoot/WEB-INF/classes/com/jsh/model/po/Category.hbm.xml
View file @
631361fc
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<hibernate-mapping>
<class
name=
"com.jsh.model.po.Category"
table=
"
ams_t
_assetcategory"
>
<class
name=
"com.jsh.model.po.Category"
table=
"
jsh
_assetcategory"
>
<id
name=
"id"
type=
"java.lang.Long"
>
<id
name=
"id"
type=
"java.lang.Long"
>
<column
name=
"id"
/>
<column
name=
"id"
/>
<generator
class=
"native"
/>
<generator
class=
"native"
/>
...
...
WebRoot/WEB-INF/classes/com/jsh/model/po/Department.class
deleted
100644 → 0
View file @
aba6a4f1
File deleted
WebRoot/WEB-INF/classes/com/jsh/model/po/Department.hbm.xml
deleted
100644 → 0
View file @
aba6a4f1
<?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.Department"
table=
"ams_t_department"
>
<id
name=
"id"
type=
"java.lang.Long"
>
<column
name=
"id"
/>
<generator
class=
"native"
/>
</id>
<property
name=
"deptname"
type=
"java.lang.String"
>
<column
name=
"deptname"
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>
WebRoot/WEB-INF/classes/common/jdbc.properties
View file @
631361fc
jdbcUrl
=
jdbc
\:
mysql
\:
//localhost
\:
3306/
ams
?useUnicode
\=
true&characterEncoding
\=
UTF-8
jdbcUrl
=
jdbc
\:
mysql
\:
//localhost
\:
3306/
jsh_erp
?useUnicode
\=
true&characterEncoding
\=
UTF-8
driverClass
=
com.mysql.jdbc.Driver
driverClass
=
com.mysql.jdbc.Driver
user
=
root
user
=
root
password
=
1234
password
=
1234
\ No newline at end of file
WebRoot/WEB-INF/classes/hibernate/hibernate.cfg.xml
View file @
631361fc
...
@@ -23,7 +23,6 @@
...
@@ -23,7 +23,6 @@
<!-- 对应的实体映射 -->
<!-- 对应的实体映射 -->
<mapping
resource=
"com/jsh/model/po/Supplier.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Supplier.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Logdetails.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"
/>
<mapping
resource=
"com/jsh/model/po/Assetname.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Category.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Category.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Basicuser.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Basicuser.hbm.xml"
/>
...
...
config/common/jdbc.properties
View file @
631361fc
jdbcUrl
=
jdbc
\:
mysql
\:
//localhost
\:
3306/
ams
?useUnicode
\=
true&characterEncoding
\=
UTF-8
jdbcUrl
=
jdbc
\:
mysql
\:
//localhost
\:
3306/
jsh_erp
?useUnicode
\=
true&characterEncoding
\=
UTF-8
driverClass
=
com.mysql.jdbc.Driver
driverClass
=
com.mysql.jdbc.Driver
user
=
root
user
=
root
password
=
1234
password
=
1234
\ No newline at end of file
config/hibernate/hibernate.cfg.xml
View file @
631361fc
...
@@ -23,7 +23,6 @@
...
@@ -23,7 +23,6 @@
<!-- 对应的实体映射 -->
<!-- 对应的实体映射 -->
<mapping
resource=
"com/jsh/model/po/Supplier.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Supplier.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Logdetails.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"
/>
<mapping
resource=
"com/jsh/model/po/Assetname.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Category.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Category.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Basicuser.hbm.xml"
/>
<mapping
resource=
"com/jsh/model/po/Basicuser.hbm.xml"
/>
...
...
sql/
ams
.sql
→
sql/
jsh_erp
.sql
View file @
631361fc
This diff is collapsed.
Click to expand it.
src/com/jsh/junitest/AmsTAsset.hbm.xml
View file @
631361fc
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
Mapping file autogenerated by MyEclipse Persistence Tools
Mapping file autogenerated by MyEclipse Persistence Tools
-->
-->
<hibernate-mapping>
<hibernate-mapping>
<class
name=
"com.jsh.junitest.AmsTAsset"
table=
"
ams_t
_asset"
catalog=
"ams"
>
<class
name=
"com.jsh.junitest.AmsTAsset"
table=
"
jsh
_asset"
catalog=
"ams"
>
<id
name=
"id"
type=
"java.lang.Long"
>
<id
name=
"id"
type=
"java.lang.Long"
>
<column
name=
"id"
/>
<column
name=
"id"
/>
<generator
class=
"native"
/>
<generator
class=
"native"
/>
...
...
src/com/jsh/model/po/Asset.hbm.xml
View file @
631361fc
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<hibernate-mapping>
<class
name=
"com.jsh.model.po.Asset"
table=
"
ams_t
_asset"
>
<class
name=
"com.jsh.model.po.Asset"
table=
"
jsh
_asset"
>
<id
name=
"id"
type=
"java.lang.Long"
>
<id
name=
"id"
type=
"java.lang.Long"
>
<column
name=
"id"
/>
<column
name=
"id"
/>
<generator
class=
"native"
/>
<generator
class=
"native"
/>
...
...
src/com/jsh/model/po/Assetcategory.hbm.xml
View file @
631361fc
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<hibernate-mapping>
<class
name=
"com.jsh.model.po.Assetcategory"
table=
"
ams_t
_assetcategory"
>
<class
name=
"com.jsh.model.po.Assetcategory"
table=
"
jsh
_assetcategory"
>
<id
name=
"id"
type=
"java.lang.Long"
>
<id
name=
"id"
type=
"java.lang.Long"
>
<column
name=
"id"
/>
<column
name=
"id"
/>
<generator
class=
"native"
/>
<generator
class=
"native"
/>
...
...
src/com/jsh/model/po/Assetname.hbm.xml
View file @
631361fc
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<hibernate-mapping>
<class
name=
"com.jsh.model.po.Assetname"
table=
"
ams_t
_assetname"
>
<class
name=
"com.jsh.model.po.Assetname"
table=
"
jsh
_assetname"
>
<id
name=
"id"
type=
"java.lang.Long"
>
<id
name=
"id"
type=
"java.lang.Long"
>
<column
name=
"id"
/>
<column
name=
"id"
/>
<generator
class=
"native"
/>
<generator
class=
"native"
/>
...
...
src/com/jsh/model/po/Category.hbm.xml
View file @
631361fc
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<hibernate-mapping>
<class
name=
"com.jsh.model.po.Category"
table=
"
ams_t
_assetcategory"
>
<class
name=
"com.jsh.model.po.Category"
table=
"
jsh
_assetcategory"
>
<id
name=
"id"
type=
"java.lang.Long"
>
<id
name=
"id"
type=
"java.lang.Long"
>
<column
name=
"id"
/>
<column
name=
"id"
/>
<generator
class=
"native"
/>
<generator
class=
"native"
/>
...
...
src/com/jsh/model/po/Department.hbm.xml
deleted
100644 → 0
View file @
aba6a4f1
<?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.Department"
table=
"ams_t_department"
>
<id
name=
"id"
type=
"java.lang.Long"
>
<column
name=
"id"
/>
<generator
class=
"native"
/>
</id>
<property
name=
"deptname"
type=
"java.lang.String"
>
<column
name=
"deptname"
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>
src/com/jsh/model/po/Department.java
deleted
100644 → 0
View file @
aba6a4f1
package
com.jsh.model.po
;
@SuppressWarnings
(
"serial"
)
public
class
Department
implements
java
.
io
.
Serializable
{
private
Long
id
;
private
String
deptname
;
private
Short
isystem
;
private
String
description
;
public
Department
()
{
}
public
Department
(
Long
id
)
{
this
.
id
=
id
;
}
public
Department
(
String
deptname
,
Short
isystem
,
String
description
)
{
super
();
this
.
deptname
=
deptname
;
this
.
isystem
=
isystem
;
this
.
description
=
description
;
}
public
Short
getIsystem
()
{
return
isystem
;
}
public
void
setIsystem
(
Short
isystem
)
{
this
.
isystem
=
isystem
;
}
public
Long
getId
()
{
return
this
.
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
String
getDeptname
()
{
return
this
.
deptname
;
}
public
void
setDeptname
(
String
deptname
)
{
this
.
deptname
=
deptname
;
}
public
String
getDescription
()
{
return
this
.
description
;
}
public
void
setDescription
(
String
description
)
{
this
.
description
=
description
;
}
}
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment