This commit is contained in:
ublue 2020-09-03 20:52:15 +08:00
parent e6d2941f3c
commit 68ca00297e
15 changed files with 107 additions and 0 deletions

BIN
lib/javax.annotation.jar Normal file

Binary file not shown.

BIN
lib/javax.ejb.jar Normal file

Binary file not shown.

BIN
lib/javax.jms.jar Normal file

Binary file not shown.

BIN
lib/javax.persistence.jar Normal file

Binary file not shown.

BIN
lib/javax.resource.jar Normal file

Binary file not shown.

BIN
lib/javax.servlet.jar Normal file

Binary file not shown.

BIN
lib/javax.servlet.jsp.jar Normal file

Binary file not shown.

Binary file not shown.

BIN
lib/javax.transaction.jar Normal file

Binary file not shown.

View 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;
}

View 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;
}

View 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;
}

View 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;
}

View File

@ -22,4 +22,8 @@ public class Student extends User {
String profilePicture;
@Column(nullable = false)
Boolean is_showgrade;
}

View File

@ -23,6 +23,8 @@ public class StudentCourse {
boolean isFailed;
int term;
Date finishedDate;
}