diff --git a/pom.xml b/pom.xml
index eaea39d..c3ef8fc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
org.springframework.boot
spring-boot-starter-parent
- 2.7.8
+ 3.0.2
@@ -182,7 +182,7 @@
org.springframework.boot
spring-boot-configuration-processor
- 2.7.8
+ 3.0.2
diff --git a/src/main/java/com/ohmyclass/api/components/classmember/entity/ClassMember.java b/src/main/java/com/ohmyclass/api/components/classmember/entity/ClassMember.java
index 3696d96..161bef2 100644
--- a/src/main/java/com/ohmyclass/api/components/classmember/entity/ClassMember.java
+++ b/src/main/java/com/ohmyclass/api/components/classmember/entity/ClassMember.java
@@ -1,4 +1,5 @@
package com.ohmyclass.api.components.classmember.entity;
+
import com.fasterxml.jackson.annotation.JsonManagedReference;
import com.ohmyclass.api.components.group.entity.Group;
import lombok.Getter;
@@ -6,7 +7,7 @@
import java.util.Set;
-import javax.persistence.*;
+import jakarta.persistence.*;
import com.ohmyclass.api.components.user.entity.User;
@@ -16,7 +17,7 @@
@Table(name = "classmember")
public class ClassMember {
- @Id
+ @Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id", nullable = false)
private Long id;
@@ -29,7 +30,7 @@ public class ClassMember {
@JsonManagedReference
private Group group;
-// @ManyToMany(fetch = FetchType.LAZY)
-// private List roles;
+ // @ManyToMany(fetch = FetchType.LAZY)
+ // private List roles;
}
diff --git a/src/main/java/com/ohmyclass/api/components/classmember/entity/GroupMember.java b/src/main/java/com/ohmyclass/api/components/classmember/entity/GroupMember.java
index ef0e755..1bf043b 100644
--- a/src/main/java/com/ohmyclass/api/components/classmember/entity/GroupMember.java
+++ b/src/main/java/com/ohmyclass/api/components/classmember/entity/GroupMember.java
@@ -7,17 +7,17 @@
import lombok.Getter;
import lombok.Setter;
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.FetchType;
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
-import javax.persistence.JoinColumn;
-import javax.persistence.ManyToMany;
-import javax.persistence.ManyToOne;
-import javax.persistence.OneToOne;
-import javax.persistence.Table;
+import jakarta.persistence.Column;
+import jakarta.persistence.Entity;
+import jakarta.persistence.FetchType;
+import jakarta.persistence.GeneratedValue;
+import jakarta.persistence.GenerationType;
+import jakarta.persistence.Id;
+import jakarta.persistence.JoinColumn;
+import jakarta.persistence.ManyToMany;
+import jakarta.persistence.ManyToOne;
+import jakarta.persistence.OneToOne;
+import jakarta.persistence.Table;
import java.util.Set;
@Getter
@@ -44,7 +44,7 @@ public class GroupMember {
private Group group;
-// @ManyToMany(fetch = FetchType.LAZY)
-// private List roles;
+ // @ManyToMany(fetch = FetchType.LAZY)
+ // private List roles;
}
diff --git a/src/main/java/com/ohmyclass/api/components/comment/entity/Comment.java b/src/main/java/com/ohmyclass/api/components/comment/entity/Comment.java
index 9da5326..ccc5cba 100644
--- a/src/main/java/com/ohmyclass/api/components/comment/entity/Comment.java
+++ b/src/main/java/com/ohmyclass/api/components/comment/entity/Comment.java
@@ -6,16 +6,16 @@
import lombok.Getter;
import lombok.Setter;
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.FetchType;
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
-import javax.persistence.JoinColumn;
-import javax.persistence.ManyToOne;
-import javax.persistence.OneToMany;
-import javax.persistence.Table;
+import jakarta.persistence.Column;
+import jakarta.persistence.Entity;
+import jakarta.persistence.FetchType;
+import jakarta.persistence.GeneratedValue;
+import jakarta.persistence.GenerationType;
+import jakarta.persistence.Id;
+import jakarta.persistence.JoinColumn;
+import jakarta.persistence.ManyToOne;
+import jakarta.persistence.OneToMany;
+import jakarta.persistence.Table;
import java.util.Date;
import java.util.Set;
diff --git a/src/main/java/com/ohmyclass/api/components/group/entity/Group.java b/src/main/java/com/ohmyclass/api/components/group/entity/Group.java
index 4bf22c0..16c6fc1 100644
--- a/src/main/java/com/ohmyclass/api/components/group/entity/Group.java
+++ b/src/main/java/com/ohmyclass/api/components/group/entity/Group.java
@@ -9,7 +9,7 @@
import lombok.Getter;
import lombok.Setter;
-import javax.persistence.*;
+import jakarta.persistence.*;
import java.util.Set;
@Getter
@@ -17,7 +17,7 @@
@Entity
@Table(name = "group")
public class Group {
- @Id
+ @Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id", nullable = false)
private Long id;
@@ -31,9 +31,7 @@ public class Group {
@OneToMany(fetch = FetchType.LAZY)
private Set subjects;
- @OneToMany(cascade = {CascadeType.ALL},
- orphanRemoval = true,
- mappedBy = "group")
+ @OneToMany(cascade = {CascadeType.ALL}, orphanRemoval = true, mappedBy = "group")
@JsonBackReference
private Set tasks;
@@ -42,7 +40,7 @@ public class Group {
@JsonManagedReference
private User user;
-// @ManyToMany(fetch = FetchType.LAZY)
-// private Set roles;
-
+ // @ManyToMany(fetch = FetchType.LAZY)
+ // private Set roles;
+
}
diff --git a/src/main/java/com/ohmyclass/api/components/preferences/entity/Preferences.java b/src/main/java/com/ohmyclass/api/components/preferences/entity/Preferences.java
index c2ebc6a..2db55d5 100644
--- a/src/main/java/com/ohmyclass/api/components/preferences/entity/Preferences.java
+++ b/src/main/java/com/ohmyclass/api/components/preferences/entity/Preferences.java
@@ -4,7 +4,7 @@
import lombok.Getter;
import lombok.Setter;
-import javax.persistence.*;
+import jakarta.persistence.*;
@Getter
@Setter
diff --git a/src/main/java/com/ohmyclass/api/components/role/entity/Role.java b/src/main/java/com/ohmyclass/api/components/role/entity/Role.java
index 1337d57..e7206f3 100644
--- a/src/main/java/com/ohmyclass/api/components/role/entity/Role.java
+++ b/src/main/java/com/ohmyclass/api/components/role/entity/Role.java
@@ -5,15 +5,15 @@
import lombok.Getter;
import lombok.Setter;
-import javax.persistence.Column;
-import javax.persistence.ElementCollection;
-import javax.persistence.Entity;
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
-import javax.persistence.JoinColumn;
-import javax.persistence.ManyToOne;
-import javax.persistence.Table;
+import jakarta.persistence.Column;
+import jakarta.persistence.ElementCollection;
+import jakarta.persistence.Entity;
+import jakarta.persistence.GeneratedValue;
+import jakarta.persistence.GenerationType;
+import jakarta.persistence.Id;
+import jakarta.persistence.JoinColumn;
+import jakarta.persistence.ManyToOne;
+import jakarta.persistence.Table;
import java.util.List;
@Getter
@@ -22,9 +22,9 @@
@Table(name = "role")
public class Role {
- public Role() {}
-
- public Role(String name) {
+ public Role() {}
+
+ public Role(String name) {
this.name = name;
}
@@ -45,8 +45,11 @@ public Role(String name) {
@JsonManagedReference
private User user;
- /* @ManyToOne
- @JoinColumn(name = "fkGroup")
- @JsonManagedReference
- private Group fkGroup;*/
+ /*
+ * @ManyToOne
+ *
+ * @JoinColumn(name = "fkGroup")
+ *
+ * @JsonManagedReference private Group fkGroup;
+ */
}
diff --git a/src/main/java/com/ohmyclass/api/components/subject/entity/Subject.java b/src/main/java/com/ohmyclass/api/components/subject/entity/Subject.java
index 0099873..86606c0 100644
--- a/src/main/java/com/ohmyclass/api/components/subject/entity/Subject.java
+++ b/src/main/java/com/ohmyclass/api/components/subject/entity/Subject.java
@@ -7,16 +7,16 @@
import lombok.Getter;
import lombok.Setter;
-import javax.persistence.CascadeType;
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
-import javax.persistence.JoinColumn;
-import javax.persistence.ManyToOne;
-import javax.persistence.OneToMany;
-import javax.persistence.Table;
+import jakarta.persistence.CascadeType;
+import jakarta.persistence.Column;
+import jakarta.persistence.Entity;
+import jakarta.persistence.GeneratedValue;
+import jakarta.persistence.GenerationType;
+import jakarta.persistence.Id;
+import jakarta.persistence.JoinColumn;
+import jakarta.persistence.ManyToOne;
+import jakarta.persistence.OneToMany;
+import jakarta.persistence.Table;
import java.util.Set;
@Getter
@@ -43,9 +43,7 @@ public class Subject {
@JsonManagedReference
private Group group;
- @OneToMany(cascade = {CascadeType.ALL},
- orphanRemoval = true,
- mappedBy = "subject")
+ @OneToMany(cascade = {CascadeType.ALL}, orphanRemoval = true, mappedBy = "subject")
@JsonBackReference
private Set tasks;
}
diff --git a/src/main/java/com/ohmyclass/api/components/task/entity/Task.java b/src/main/java/com/ohmyclass/api/components/task/entity/Task.java
index 5ec689d..972f052 100644
--- a/src/main/java/com/ohmyclass/api/components/task/entity/Task.java
+++ b/src/main/java/com/ohmyclass/api/components/task/entity/Task.java
@@ -10,17 +10,17 @@
import lombok.Getter;
import lombok.Setter;
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.FetchType;
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
-import javax.persistence.JoinColumn;
-import javax.persistence.ManyToOne;
-import javax.persistence.OneToMany;
-import javax.persistence.OneToOne;
-import javax.persistence.Table;
+import jakarta.persistence.Column;
+import jakarta.persistence.Entity;
+import jakarta.persistence.FetchType;
+import jakarta.persistence.GeneratedValue;
+import jakarta.persistence.GenerationType;
+import jakarta.persistence.Id;
+import jakarta.persistence.JoinColumn;
+import jakarta.persistence.ManyToOne;
+import jakarta.persistence.OneToMany;
+import jakarta.persistence.OneToOne;
+import jakarta.persistence.Table;
import java.util.Date;
import java.util.List;
import java.util.Set;
@@ -30,7 +30,7 @@
@Entity
@Table(name = "Task")
public class Task {
-
+
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id", nullable = false)
diff --git a/src/main/java/com/ohmyclass/api/components/tick/entity/Tick.java b/src/main/java/com/ohmyclass/api/components/tick/entity/Tick.java
index 0d31c7f..ee1a05e 100644
--- a/src/main/java/com/ohmyclass/api/components/tick/entity/Tick.java
+++ b/src/main/java/com/ohmyclass/api/components/tick/entity/Tick.java
@@ -5,7 +5,7 @@
import lombok.Getter;
import lombok.Setter;
-import javax.persistence.*;
+import jakarta.persistence.*;
@Getter
@Setter
diff --git a/src/main/java/com/ohmyclass/api/components/user/controller/IUserController.java b/src/main/java/com/ohmyclass/api/components/user/controller/IUserController.java
index 3441140..f06e070 100644
--- a/src/main/java/com/ohmyclass/api/components/user/controller/IUserController.java
+++ b/src/main/java/com/ohmyclass/api/components/user/controller/IUserController.java
@@ -15,8 +15,8 @@
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
+import jakarta.servlet.http.HttpServletRequest;
+import jakarta.servlet.http.HttpServletResponse;
import java.util.Map;
@RestController
@@ -25,16 +25,18 @@ public interface IUserController {
@PostMapping("/auth/register")
@Operation(summary = "Register a user into the database")
- @ApiResponse(responseCode = "200", description = "The generated", content = {
- @Content(mediaType = "application/json", schema = @Schema(implementation = Map.class)) })
+ @ApiResponse(responseCode = "200", description = "The generated",
+ content = {
+ @Content(mediaType = "application/json", schema = @Schema(implementation = Map.class))})
@ApiResponse(responseCode = "401", description = "Authentication failed")
@ApiResponse(responseCode = "500", description = "General server error")
Response