Просмотр исходного кода

Removed unneccessary id fields in entities

Lauren Green 5 лет назад
Родитель
Сommit
88375a4b7a

+ 0
- 17
src/main/java/rocks/zipcode/io/domain/Cohort.java Просмотреть файл

@@ -22,9 +22,6 @@ public class Cohort implements Serializable {
22 22
     @GeneratedValue(strategy = GenerationType.IDENTITY)
23 23
     private Long id;
24 24
 
25
-    @Column(name = "cohort_id")
26
-    private Double cohortId;
27
-
28 25
     @Column(name = "grad_date")
29 26
     private String gradDate;
30 27
 
@@ -37,19 +34,6 @@ public class Cohort implements Serializable {
37 34
         this.id = id;
38 35
     }
39 36
 
40
-    public Double getCohortId() {
41
-        return cohortId;
42
-    }
43
-
44
-    public Cohort cohortId(Double cohortId) {
45
-        this.cohortId = cohortId;
46
-        return this;
47
-    }
48
-
49
-    public void setCohortId(Double cohortId) {
50
-        this.cohortId = cohortId;
51
-    }
52
-
53 37
     public String getGradDate() {
54 38
         return gradDate;
55 39
     }
@@ -88,7 +72,6 @@ public class Cohort implements Serializable {
88 72
     public String toString() {
89 73
         return "Cohort{" +
90 74
             "id=" + getId() +
91
-            ", cohortId=" + getCohortId() +
92 75
             ", gradDate='" + getGradDate() + "'" +
93 76
             "}";
94 77
     }

+ 0
- 17
src/main/java/rocks/zipcode/io/domain/Employer.java Просмотреть файл

@@ -22,9 +22,6 @@ public class Employer implements Serializable {
22 22
     @GeneratedValue(strategy = GenerationType.IDENTITY)
23 23
     private Long id;
24 24
 
25
-    @Column(name = "employer_id")
26
-    private Long employerId;
27
-
28 25
     @Column(name = "company_name")
29 26
     private String companyName;
30 27
 
@@ -43,19 +40,6 @@ public class Employer implements Serializable {
43 40
         this.id = id;
44 41
     }
45 42
 
46
-    public Long getEmployerId() {
47
-        return employerId;
48
-    }
49
-
50
-    public Employer employerId(Long employerId) {
51
-        this.employerId = employerId;
52
-        return this;
53
-    }
54
-
55
-    public void setEmployerId(Long employerId) {
56
-        this.employerId = employerId;
57
-    }
58
-
59 43
     public String getCompanyName() {
60 44
         return companyName;
61 45
     }
@@ -120,7 +104,6 @@ public class Employer implements Serializable {
120 104
     public String toString() {
121 105
         return "Employer{" +
122 106
             "id=" + getId() +
123
-            ", employerId=" + getEmployerId() +
124 107
             ", companyName='" + getCompanyName() + "'" +
125 108
             ", city='" + getCity() + "'" +
126 109
             ", state='" + getState() + "'" +

+ 0
- 17
src/main/java/rocks/zipcode/io/domain/Post.java Просмотреть файл

@@ -24,9 +24,6 @@ public class Post implements Serializable {
24 24
     @GeneratedValue(strategy = GenerationType.IDENTITY)
25 25
     private Long id;
26 26
 
27
-    @Column(name = "post_id")
28
-    private Long postId;
29
-
30 27
     @Column(name = "jhi_timestamp")
31 28
     private LocalDate timestamp;
32 29
 
@@ -52,19 +49,6 @@ public class Post implements Serializable {
52 49
         this.id = id;
53 50
     }
54 51
 
55
-    public Long getPostId() {
56
-        return postId;
57
-    }
58
-
59
-    public Post postId(Long postId) {
60
-        this.postId = postId;
61
-        return this;
62
-    }
63
-
64
-    public void setPostId(Long postId) {
65
-        this.postId = postId;
66
-    }
67
-
68 52
     public LocalDate getTimestamp() {
69 53
         return timestamp;
70 54
     }
@@ -155,7 +139,6 @@ public class Post implements Serializable {
155 139
     public String toString() {
156 140
         return "Post{" +
157 141
             "id=" + getId() +
158
-            ", postId=" + getPostId() +
159 142
             ", timestamp='" + getTimestamp() + "'" +
160 143
             ", content='" + getContent() + "'" +
161 144
             ", likes='" + getLikes() + "'" +

+ 0
- 17
src/main/java/rocks/zipcode/io/domain/Privacy.java Просмотреть файл

@@ -22,9 +22,6 @@ public class Privacy implements Serializable {
22 22
     @GeneratedValue(strategy = GenerationType.IDENTITY)
23 23
     private Long id;
24 24
 
25
-    @Column(name = "privacy_id")
26
-    private Long privacyId;
27
-
28 25
     @Column(name = "public_view")
29 26
     private Boolean publicView;
30 27
 
@@ -43,19 +40,6 @@ public class Privacy implements Serializable {
43 40
         this.id = id;
44 41
     }
45 42
 
46
-    public Long getPrivacyId() {
47
-        return privacyId;
48
-    }
49
-
50
-    public Privacy privacyId(Long privacyId) {
51
-        this.privacyId = privacyId;
52
-        return this;
53
-    }
54
-
55
-    public void setPrivacyId(Long privacyId) {
56
-        this.privacyId = privacyId;
57
-    }
58
-
59 43
     public Boolean isPublicView() {
60 44
         return publicView;
61 45
     }
@@ -120,7 +104,6 @@ public class Privacy implements Serializable {
120 104
     public String toString() {
121 105
         return "Privacy{" +
122 106
             "id=" + getId() +
123
-            ", privacyId=" + getPrivacyId() +
124 107
             ", publicView='" + isPublicView() + "'" +
125 108
             ", cohortView='" + isCohortView() + "'" +
126 109
             ", employerView='" + isEmployerView() + "'" +

+ 0
- 17
src/main/java/rocks/zipcode/io/domain/UserProfile.java Просмотреть файл

@@ -23,9 +23,6 @@ public class UserProfile implements Serializable {
23 23
     @GeneratedValue(strategy = GenerationType.IDENTITY)
24 24
     private Long id;
25 25
 
26
-    @Column(name = "profile_id")
27
-    private Long profileId;
28
-
29 26
     @Column(name = "first_name")
30 27
     private String firstName;
31 28
 
@@ -55,19 +52,6 @@ public class UserProfile implements Serializable {
55 52
         this.id = id;
56 53
     }
57 54
 
58
-    public Long getProfileId() {
59
-        return profileId;
60
-    }
61
-
62
-    public UserProfile profileId(Long profileId) {
63
-        this.profileId = profileId;
64
-        return this;
65
-    }
66
-
67
-    public void setProfileId(Long profileId) {
68
-        this.profileId = profileId;
69
-    }
70
-
71 55
     public String getFirstName() {
72 56
         return firstName;
73 57
     }
@@ -170,7 +154,6 @@ public class UserProfile implements Serializable {
170 154
     public String toString() {
171 155
         return "UserProfile{" +
172 156
             "id=" + getId() +
173
-            ", profileId=" + getProfileId() +
174 157
             ", firstName='" + getFirstName() + "'" +
175 158
             ", lastName='" + getLastName() + "'" +
176 159
             ", userStack='" + getUserStack() + "'" +