task/3382: Harmonisera tabellnamn #6

Merged
ansv7779 merged 104 commits from task/3382 into develop 2024-11-12 13:33:44 +01:00
7 changed files with 39 additions and 37 deletions
Showing only changes of commit 353ead7966 - Show all commits

View File

@ -14,6 +14,10 @@ import jakarta.persistence.ManyToOne;
@Entity @Entity
public class GroupEvent extends NotificationEvent { public class GroupEvent extends NotificationEvent {
public enum Event {
MESSAGE_THREAD_CREATED, MESSAGE_THREAD_REPLY
}
@Basic @Basic
@Column(name = "event") @Column(name = "event")
@Enumerated(EnumType.STRING) @Enumerated(EnumType.STRING)
@ -58,8 +62,4 @@ public class GroupEvent extends NotificationEvent {
public DomainObject getEntity() { public DomainObject getEntity() {
return group; return group;
} }
public enum Event {
MESSAGE_THREAD_CREATED, MESSAGE_THREAD_REPLY
}
} }

View File

@ -14,6 +14,11 @@ import jakarta.persistence.ManyToOne;
@Entity @Entity
public class IdeaEvent extends NotificationEvent { public class IdeaEvent extends NotificationEvent {
public enum Event {
STATUS_CHANGE, PARTNER_ACCEPT,
ADDED_AS_PARTNER, FIRST_MEETING, REMOVED_AS_PARTNER, EXPORTED_FAIL
}
@Basic @Basic
@Column(name = "event") @Column(name = "event")
@Enumerated(EnumType.STRING) @Enumerated(EnumType.STRING)
@ -58,9 +63,4 @@ public class IdeaEvent extends NotificationEvent {
public DomainObject getEntity() { public DomainObject getEntity() {
return idea; return idea;
} }
public enum Event {
STATUS_CHANGE, PARTNER_ACCEPT,
ADDED_AS_PARTNER, FIRST_MEETING, REMOVED_AS_PARTNER, EXPORTED_FAIL
}
} }

View File

@ -16,6 +16,10 @@ import java.util.Objects;
@Entity @Entity
public class MileStoneEvent extends NotificationEvent { public class MileStoneEvent extends NotificationEvent {
public enum Event {
MILESTONE_CONFIRMED, MILESTONE_REVOKED
}
@Basic @Basic
@Column(name = "event") @Column(name = "event")
@Enumerated(EnumType.STRING) @Enumerated(EnumType.STRING)
@ -90,8 +94,4 @@ public class MileStoneEvent extends NotificationEvent {
public DomainObject getEntity() { public DomainObject getEntity() {
return milestone; return milestone;
} }
public enum Event {
MILESTONE_CONFIRMED, MILESTONE_REVOKED
}
} }

View File

@ -15,6 +15,11 @@ import jakarta.persistence.ManyToOne;
@Entity @Entity
public class PeerEvent extends NotificationEvent { public class PeerEvent extends NotificationEvent {
public enum Event {
REVIEW_COMPLETED, REVIEW_COMMENT, REVIEW_ACCEPTED, REQUEST_DELETED,
REQUEST_EXPIRED
}
@Basic @Basic
@Column(name = "event") @Column(name = "event")
@Enumerated(EnumType.STRING) @Enumerated(EnumType.STRING)
@ -64,8 +69,4 @@ public class PeerEvent extends NotificationEvent {
public DomainObject getEntity() { public DomainObject getEntity() {
return review; return review;
} }
public enum Event {
REVIEW_COMPLETED, REVIEW_COMMENT, REVIEW_ACCEPTED, REQUEST_DELETED,
REQUEST_EXPIRED }
} }

View File

@ -14,6 +14,18 @@ import jakarta.persistence.ManyToOne;
@Entity @Entity
public class ProjectEvent extends NotificationEvent { public class ProjectEvent extends NotificationEvent {
public enum Event {
CREATED, AUTHORS_CHANGED, HEAD_SUPERVISOR_CHANGED, REVIEWERS_CHANGED, CO_SUPERVISOR_CHANGED,
STATE_CHANGED, ACTIVITY_ADDED, ACTIVITY_REMOVED, ACTIVITY_EDITED, FILE_UPLOADED, CHECKLIST_ANSWERED,
CHECKLIST_ADDED, MILESTONE_CONFIRMED, MILESTONE_REVOKED, FINAL_THESIS_APPROVED, FILE_SIZE_TOO_BIG,
FINAL_THESIS_UPLOADED, PROJECT_ACTIVATED, PROJECT_DEACTIVATED, FINAL_SEMINAR_APPROVAL_REQUESTED,
FINAL_SEMINAR_APPROVAL_APPROVED, FINAL_SEMINAR_APPROVAL_REJECTED, ROUGH_DRAFT_APPROVAL_REQUESTED,
ROUGH_DRAFT_APPROVAL_APPROVED, ROUGH_DRAFT_APPROVAL_REJECTED, REVIEWER_GRADING_REPORT_SUBMITTED,
ONE_YEAR_PASSED_FROM_LATEST_ANNUAL_REVIEW, SUPERVISOR_GRADING_INITIAL_ASSESSMENT_DONE,
EXPORTED_SUCCESS, REVIEWER_GRADING_INITIAL_ASSESSMENT_DONE, FIRST_MEETING, OPPOSITION_FAILED,
PARTICIPATION_APPROVED, COMPLETED, PARTICIPATION_FAILED
}
@Basic @Basic
@Column(name = "event") @Column(name = "event")
@Enumerated(EnumType.STRING) @Enumerated(EnumType.STRING)
@ -59,16 +71,4 @@ public class ProjectEvent extends NotificationEvent {
public DomainObject getEntity() { public DomainObject getEntity() {
return project; return project;
} }
public enum Event {
CREATED, AUTHORS_CHANGED, HEAD_SUPERVISOR_CHANGED, REVIEWERS_CHANGED, CO_SUPERVISOR_CHANGED,
STATE_CHANGED, ACTIVITY_ADDED, ACTIVITY_REMOVED, ACTIVITY_EDITED, FILE_UPLOADED, CHECKLIST_ANSWERED,
CHECKLIST_ADDED, MILESTONE_CONFIRMED, MILESTONE_REVOKED, FINAL_THESIS_APPROVED, FILE_SIZE_TOO_BIG,
FINAL_THESIS_UPLOADED, PROJECT_ACTIVATED, PROJECT_DEACTIVATED, FINAL_SEMINAR_APPROVAL_REQUESTED,
FINAL_SEMINAR_APPROVAL_APPROVED, FINAL_SEMINAR_APPROVAL_REJECTED, ROUGH_DRAFT_APPROVAL_REQUESTED,
ROUGH_DRAFT_APPROVAL_APPROVED, ROUGH_DRAFT_APPROVAL_REJECTED, REVIEWER_GRADING_REPORT_SUBMITTED,
ONE_YEAR_PASSED_FROM_LATEST_ANNUAL_REVIEW, SUPERVISOR_GRADING_INITIAL_ASSESSMENT_DONE,
EXPORTED_SUCCESS, REVIEWER_GRADING_INITIAL_ASSESSMENT_DONE, FIRST_MEETING, OPPOSITION_FAILED, PARTICIPATION_APPROVED, COMPLETED,
PARTICIPATION_FAILED
}
} }

View File

@ -14,6 +14,10 @@ import jakarta.persistence.ManyToOne;
@Entity @Entity
public class ProjectForumEvent extends NotificationEvent { public class ProjectForumEvent extends NotificationEvent {
public enum Event {
NEW_FORUM_POST, NEW_FORUM_POST_COMMENT, NEW_REVIEWER_INTERACTION
}
@Basic @Basic
@Column(name = "event") @Column(name = "event")
@Enumerated(EnumType.STRING) @Enumerated(EnumType.STRING)
@ -59,8 +63,4 @@ public class ProjectForumEvent extends NotificationEvent {
public DomainObject getEntity() { public DomainObject getEntity() {
return project; return project;
} }
public enum Event {
NEW_FORUM_POST, NEW_FORUM_POST_COMMENT, NEW_REVIEWER_INTERACTION
}
} }

View File

@ -15,6 +15,11 @@ import jakarta.persistence.ManyToOne;
@Entity @Entity
public class SeminarEvent extends NotificationEvent { public class SeminarEvent extends NotificationEvent {
public enum Event { CREATED, ROOM_CHANGED, DATE_CHANGED, OPPOSITION_CHANGED,
PARTICIPATION_CHANGED, THESIS_UPLOADED, THESIS_UPLOADED_OPPONENT,
OPPOSITION_REPORT_UPLOADED, THESIS_DELETED, THESIS_UPLOAD_REMIND, CANCELLED
}
@Basic @Basic
@Column(name = "event") @Column(name = "event")
@Enumerated(EnumType.STRING) @Enumerated(EnumType.STRING)
@ -64,8 +69,4 @@ public class SeminarEvent extends NotificationEvent {
public DomainObject getEntity() { public DomainObject getEntity() {
return seminar; return seminar;
} }
public enum Event { CREATED, ROOM_CHANGED, DATE_CHANGED, OPPOSITION_CHANGED,
PARTICIPATION_CHANGED, THESIS_UPLOADED, THESIS_UPLOADED_OPPONENT,
OPPOSITION_REPORT_UPLOADED, THESIS_DELETED, THESIS_UPLOAD_REMIND, CANCELLED}
} }