Skip to content

Commit a8da109

Browse files
committed
upload
1 parent ba56635 commit a8da109

File tree

34 files changed

+3478
-0
lines changed

34 files changed

+3478
-0
lines changed

javaframework/mybatis/01mybatis的介绍及使用/01Mybatis的介绍和基本使用.md

Lines changed: 634 additions & 0 deletions
Large diffs are not rendered by default.
8.19 KB
Loading
18.4 KB
Loading

javaframework/mybatis/01mybatis的介绍及使用/mybatis_helloworld/.idea/compiler.xml

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

javaframework/mybatis/01mybatis的介绍及使用/mybatis_helloworld/.idea/encodings.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

javaframework/mybatis/01mybatis的介绍及使用/mybatis_helloworld/.idea/misc.xml

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

javaframework/mybatis/01mybatis的介绍及使用/mybatis_helloworld/.idea/workspace.xml

Lines changed: 781 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module type="JAVA_MODULE" version="4" />
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>com.mashibing</groupId>
8+
<artifactId>mybatis_helloworld</artifactId>
9+
<version>1.0-SNAPSHOT</version>
10+
11+
12+
<dependencies>
13+
<!-- https://mvnrepository.com/artifact/org.mybatis/mybatis -->
14+
<dependency>
15+
<groupId>org.mybatis</groupId>
16+
<artifactId>mybatis</artifactId>
17+
<version>3.5.4</version>
18+
</dependency>
19+
<!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
20+
<dependency>
21+
<groupId>mysql</groupId>
22+
<artifactId>mysql-connector-java</artifactId>
23+
<version>8.0.19</version>
24+
</dependency>
25+
<!-- https://mvnrepository.com/artifact/junit/junit -->
26+
<dependency>
27+
<groupId>junit</groupId>
28+
<artifactId>junit</artifactId>
29+
<version>4.13</version>
30+
<scope>test</scope>
31+
</dependency>
32+
<!-- https://mvnrepository.com/artifact/log4j/log4j -->
33+
<dependency>
34+
<groupId>log4j</groupId>
35+
<artifactId>log4j</artifactId>
36+
<version>1.2.17</version>
37+
</dependency>
38+
39+
</dependencies>
40+
<!-- <build>-->
41+
<!-- <resources>-->
42+
<!-- <resource>-->
43+
<!-- <directory>src/main/java</directory>-->
44+
<!-- <includes>-->
45+
<!-- <include>**/*.xml</include>-->
46+
<!-- </includes>-->
47+
<!-- </resource>-->
48+
<!-- </resources>-->
49+
<!-- </build>-->
50+
</project>
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
package com.mashibing.bean;
2+
3+
import java.util.Date;
4+
5+
public class Emp {
6+
7+
private Integer empno;
8+
private String ename;
9+
private String job;
10+
private Integer mgr;
11+
private Date hiredate;
12+
private Double sal;
13+
private Double comm;
14+
private Integer deptno;
15+
16+
public Integer getEmpno() {
17+
return empno;
18+
}
19+
20+
public void setEmpno(Integer empno) {
21+
this.empno = empno;
22+
}
23+
24+
public String getEname() {
25+
return ename;
26+
}
27+
28+
public void setEname(String ename) {
29+
this.ename = ename;
30+
}
31+
32+
public String getJob() {
33+
return job;
34+
}
35+
36+
public void setJob(String job) {
37+
this.job = job;
38+
}
39+
40+
public Integer getMgr() {
41+
return mgr;
42+
}
43+
44+
public void setMgr(Integer mgr) {
45+
this.mgr = mgr;
46+
}
47+
48+
public Date getHiredate() {
49+
return hiredate;
50+
}
51+
52+
public void setHiredate(Date hiredate) {
53+
this.hiredate = hiredate;
54+
}
55+
56+
public Double getSal() {
57+
return sal;
58+
}
59+
60+
public void setSal(Double sal) {
61+
this.sal = sal;
62+
}
63+
64+
public Double getComm() {
65+
return comm;
66+
}
67+
68+
public void setComm(Double comm) {
69+
this.comm = comm;
70+
}
71+
72+
public Integer getDeptno() {
73+
return deptno;
74+
}
75+
76+
public void setDeptno(Integer deptno) {
77+
this.deptno = deptno;
78+
}
79+
80+
@Override
81+
public String toString() {
82+
return "Emp{" +
83+
"empno=" + empno +
84+
", ename='" + ename + '\'' +
85+
", job='" + job + '\'' +
86+
", mgr=" + mgr +
87+
", hiredate=" + hiredate +
88+
", sal=" + sal +
89+
", comm=" + comm +
90+
", deptno=" + deptno +
91+
'}';
92+
}
93+
}

0 commit comments

Comments
 (0)