Skip to content
Snippets Groups Projects
Commit 3c26084f authored by koz01's avatar koz01
Browse files

Remove warning due serializartion without id.

parent a6e3edc0
Branches master
No related merge requests found
Pipeline #128 failed with stages
in 0 seconds
......@@ -15,6 +15,7 @@ import lombok.ToString;
@ToString
public class BaseEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Getter
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
......
......@@ -14,6 +14,8 @@ import lombok.Setter;
@NoArgsConstructor
public class Clas extends BaseEntity {
private static final long serialVersionUID = 1L;
@Getter
@Setter
private String cname;
......
......@@ -16,6 +16,8 @@ import lombok.ToString;
@NoArgsConstructor
public class Department extends BaseEntity {
private static final long serialVersionUID = 1L;
@Getter
@Setter
private String name;
......
......@@ -14,6 +14,8 @@ import lombok.ToString;
@NoArgsConstructor
public class Employee extends BaseEntity {
private static final long serialVersionUID = 1L;
@Getter
@Setter
private String ename;
......
......@@ -9,6 +9,7 @@ import lombok.Setter;
@NoArgsConstructor
public class NonTeachingStaff extends Staff {
private static final long serialVersionUID = 1L;
@Getter
@Setter
private String areaexpertise;
......
......@@ -10,6 +10,7 @@ import lombok.Setter;
public class Staff extends BaseEntity {
private static final long serialVersionUID = 1L;
@Getter
@Setter
private String sname;
......
......@@ -15,6 +15,8 @@ import lombok.Setter;
@NoArgsConstructor
public class Teacher extends BaseEntity {
private static final long serialVersionUID = 1L;
@Getter
@Setter
private String tname;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment