Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
0bf91bd2ed
BIN
lib/javax.annotation.jar
Normal file
BIN
lib/javax.annotation.jar
Normal file
Binary file not shown.
BIN
lib/javax.ejb.jar
Normal file
BIN
lib/javax.ejb.jar
Normal file
Binary file not shown.
BIN
lib/javax.jms.jar
Normal file
BIN
lib/javax.jms.jar
Normal file
Binary file not shown.
BIN
lib/javax.persistence.jar
Normal file
BIN
lib/javax.persistence.jar
Normal file
Binary file not shown.
BIN
lib/javax.resource.jar
Normal file
BIN
lib/javax.resource.jar
Normal file
Binary file not shown.
BIN
lib/javax.servlet.jar
Normal file
BIN
lib/javax.servlet.jar
Normal file
Binary file not shown.
BIN
lib/javax.servlet.jsp.jar
Normal file
BIN
lib/javax.servlet.jsp.jar
Normal file
Binary file not shown.
BIN
lib/javax.servlet.jsp.jstl.jar
Normal file
BIN
lib/javax.servlet.jsp.jstl.jar
Normal file
Binary file not shown.
BIN
lib/javax.transaction.jar
Normal file
BIN
lib/javax.transaction.jar
Normal file
Binary file not shown.
28
src/main/java/com/codesdream/ase/model/parent/Excercise.java
Normal file
28
src/main/java/com/codesdream/ase/model/parent/Excercise.java
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
package com.codesdream.ase.model.parent;
|
||||||
|
|
||||||
|
import com.codesdream.ase.model.file.Image;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import javax.persistence.*;
|
||||||
|
import java.sql.Time;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Entity
|
||||||
|
@Table
|
||||||
|
@Data
|
||||||
|
public class Excercise {
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.AUTO)
|
||||||
|
int id;
|
||||||
|
|
||||||
|
// 开始时间
|
||||||
|
Date start;
|
||||||
|
|
||||||
|
// 持续时间
|
||||||
|
Time duration;
|
||||||
|
|
||||||
|
// 学期
|
||||||
|
int term;
|
||||||
|
}
|
30
src/main/java/com/codesdream/ase/model/parent/Message.java
Normal file
30
src/main/java/com/codesdream/ase/model/parent/Message.java
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
package com.codesdream.ase.model.parent;
|
||||||
|
|
||||||
|
import com.codesdream.ase.model.file.File;
|
||||||
|
import com.codesdream.ase.model.mark.Tag;
|
||||||
|
import com.codesdream.ase.model.permission.User;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import javax.persistence.*;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Entity
|
||||||
|
@Table
|
||||||
|
@Data
|
||||||
|
public class Message {
|
||||||
|
@Id
|
||||||
|
int id;
|
||||||
|
|
||||||
|
String title;
|
||||||
|
String text;
|
||||||
|
Boolean have_read;
|
||||||
|
|
||||||
|
// 重要性 值为0-1
|
||||||
|
int type;
|
||||||
|
|
||||||
|
@OneToMany
|
||||||
|
User Receiver;
|
||||||
|
|
||||||
|
}
|
23
src/main/java/com/codesdream/ase/model/parent/Parent.java
Normal file
23
src/main/java/com/codesdream/ase/model/parent/Parent.java
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
package com.codesdream.ase.model.parent;
|
||||||
|
|
||||||
|
import com.codesdream.ase.model.mark.Tag;
|
||||||
|
import com.codesdream.ase.model.permission.User;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
import javax.persistence.*;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Entity
|
||||||
|
@Table
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = false)
|
||||||
|
public class Parent extends User {
|
||||||
|
@Column(nullable = false)
|
||||||
|
String parentId;
|
||||||
|
|
||||||
|
@Column(nullable = false)
|
||||||
|
String name;
|
||||||
|
|
||||||
|
}
|
20
src/main/java/com/codesdream/ase/model/robot/Faq.java
Normal file
20
src/main/java/com/codesdream/ase/model/robot/Faq.java
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
package com.codesdream.ase.model.robot;
|
||||||
|
|
||||||
|
import com.codesdream.ase.model.mark.Tag;
|
||||||
|
import com.codesdream.ase.model.permission.User;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
import javax.persistence.*;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Entity
|
||||||
|
@Table
|
||||||
|
@Data
|
||||||
|
public class Faq {
|
||||||
|
String answer;
|
||||||
|
String question;
|
||||||
|
List<String> tag;
|
||||||
|
|
||||||
|
}
|
@ -19,4 +19,8 @@ public class Student extends User {
|
|||||||
|
|
||||||
String profilePicture;
|
String profilePicture;
|
||||||
|
|
||||||
|
@Column(nullable = false)
|
||||||
|
Boolean is_showgrade;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -22,6 +22,8 @@ public class StudentCourse {
|
|||||||
@Column(nullable = false)
|
@Column(nullable = false)
|
||||||
boolean isFailed;
|
boolean isFailed;
|
||||||
|
|
||||||
|
int term;
|
||||||
|
|
||||||
Date finishedDate;
|
Date finishedDate;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user