Skip to content

Commit 5e8e751

Browse files
committed
init
0 parents  commit 5e8e751

28 files changed

Lines changed: 1027 additions & 0 deletions

config/db.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
jdbc.driver=com.mysql.jdbc.Driver
2+
jdbc.url=jdbc:mysql://localhost:3306/giit
3+
jdbc.username=root
4+
jdbc.password=0313

config/log4j.properties

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Global logging configuration
2+
#在开发环境下日志级别要设置成DEBUG 生产环境设置成info或error
3+
4+
log4j.rootLogger=DEBUG, stdout
5+
#Console output...
6+
7+
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
8+
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
9+
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] - %m%n

config/mybatisConfig.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<!DOCTYPE configuration
3+
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
4+
"http://mybatis.org/dtd/mybatis-3-config.dtd">
5+
6+
7+
<configuration>
8+
9+
</configuration>

src/com/giit/www/entity/Book.java

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
package com.giit.www.entity;
2+
3+
/**
4+
* Created by c0de8ug on 16-2-9.
5+
*/
6+
public class Book {
7+
8+
String bookTitle;
9+
String isbn;
10+
String dataOfPrinting;
11+
String author;
12+
String press;
13+
String category;
14+
String unitPrice;
15+
16+
public String getBookTitle() {
17+
return bookTitle;
18+
}
19+
20+
public void setBookTitle(String bookTitle) {
21+
this.bookTitle = bookTitle;
22+
}
23+
24+
public String getIsbn() {
25+
return isbn;
26+
}
27+
28+
public void setIsbn(String isbn) {
29+
this.isbn = isbn;
30+
}
31+
32+
public String getDataOfPrinting() {
33+
return dataOfPrinting;
34+
}
35+
36+
public void setDataOfPrinting(String dataOfPrinting) {
37+
this.dataOfPrinting = dataOfPrinting;
38+
}
39+
40+
public String getAuthor() {
41+
return author;
42+
}
43+
44+
public void setAuthor(String author) {
45+
this.author = author;
46+
}
47+
48+
public String getPress() {
49+
return press;
50+
}
51+
52+
public void setPress(String press) {
53+
this.press = press;
54+
}
55+
56+
public String getCategory() {
57+
return category;
58+
}
59+
60+
public void setCategory(String category) {
61+
this.category = category;
62+
}
63+
64+
public String getUnitPrice() {
65+
return unitPrice;
66+
}
67+
68+
public void setUnitPrice(String unitPrice) {
69+
this.unitPrice = unitPrice;
70+
}
71+
}

src/com/giit/www/entity/Class.java

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
package com.giit.www.entity;
2+
3+
/**
4+
* Created by c0de8ug on 16-2-9.
5+
*/
6+
public class Class {
7+
String classId;
8+
String className;
9+
String year;
10+
String specName;
11+
12+
public String getClassId() {
13+
return classId;
14+
}
15+
16+
public void setClassId(String classId) {
17+
this.classId = classId;
18+
}
19+
20+
public String getClassName() {
21+
return className;
22+
}
23+
24+
public void setClassName(String className) {
25+
this.className = className;
26+
}
27+
28+
public String getYear() {
29+
return year;
30+
}
31+
32+
public void setYear(String year) {
33+
this.year = year;
34+
}
35+
36+
public String getSpecName() {
37+
return specName;
38+
}
39+
40+
public void setSpecName(String specName) {
41+
this.specName = specName;
42+
}
43+
}
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
package com.giit.www.entity;
2+
3+
/**
4+
* Created by c0de8ug on 16-2-9.
5+
*/
6+
public class Course {
7+
String courseTitle;
8+
String courseId;
9+
String courseCode;
10+
String type;
11+
String speciality;
12+
float credits;
13+
14+
public String getCourseTitle() {
15+
return courseTitle;
16+
}
17+
18+
public void setCourseTitle(String courseTitle) {
19+
this.courseTitle = courseTitle;
20+
}
21+
22+
public String getCourseId() {
23+
return courseId;
24+
}
25+
26+
public void setCourseId(String courseId) {
27+
this.courseId = courseId;
28+
}
29+
30+
public String getCourseCode() {
31+
return courseCode;
32+
}
33+
34+
public void setCourseCode(String courseCode) {
35+
this.courseCode = courseCode;
36+
}
37+
38+
public String getType() {
39+
return type;
40+
}
41+
42+
public void setType(String type) {
43+
this.type = type;
44+
}
45+
46+
public String getSpeciality() {
47+
return speciality;
48+
}
49+
50+
public void setSpeciality(String speciality) {
51+
this.speciality = speciality;
52+
}
53+
54+
public float getCredits() {
55+
return credits;
56+
}
57+
58+
public void setCredits(float credits) {
59+
this.credits = credits;
60+
}
61+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package com.giit.www.entity.Custom;
2+
3+
import com.giit.www.entity.User;
4+
5+
/**
6+
* Created by c0de8ug on 16-2-9.
7+
*/
8+
public class UserCustom extends User {
9+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package com.giit.www.entity;
2+
3+
/**
4+
* Created by c0de8ug on 16-2-9.
5+
*/
6+
public class Department {
7+
int deptId;
8+
String deptName;
9+
10+
public int getDeptId() {
11+
return deptId;
12+
}
13+
14+
public void setDeptId(int deptId) {
15+
this.deptId = deptId;
16+
}
17+
18+
public String getDeptName() {
19+
return deptName;
20+
}
21+
22+
public void setDeptName(String deptName) {
23+
this.deptName = deptName;
24+
}
25+
}
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
package com.giit.www.entity;
2+
3+
/**
4+
* Created by c0de8ug on 16-2-9.
5+
*/
6+
public class OrderBook {
7+
String staffId;
8+
String bookTitle;
9+
String isbn;
10+
String remark;
11+
int secId;
12+
boolean approval;
13+
14+
public String getStaffId() {
15+
return staffId;
16+
}
17+
18+
public void setStaffId(String staffId) {
19+
this.staffId = staffId;
20+
}
21+
22+
public String getBookTitle() {
23+
return bookTitle;
24+
}
25+
26+
public void setBookTitle(String bookTitle) {
27+
this.bookTitle = bookTitle;
28+
}
29+
30+
public String getIsbn() {
31+
return isbn;
32+
}
33+
34+
public void setIsbn(String isbn) {
35+
this.isbn = isbn;
36+
}
37+
38+
public String getRemark() {
39+
return remark;
40+
}
41+
42+
public void setRemark(String remark) {
43+
this.remark = remark;
44+
}
45+
46+
public int getSecId() {
47+
return secId;
48+
}
49+
50+
public void setSecId(int secId) {
51+
this.secId = secId;
52+
}
53+
54+
public boolean isApproval() {
55+
return approval;
56+
}
57+
58+
public void setApproval(boolean approval) {
59+
this.approval = approval;
60+
}
61+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package com.giit.www.entity;
2+
3+
/**
4+
* Created by c0de8ug on 16-2-9.
5+
*/
6+
public class Section {
7+
int secId;
8+
String courseTitle;
9+
10+
}

0 commit comments

Comments
 (0)