Bladeren bron

Removed unneccessary id fields in entities

Lauren Green 5 jaren geleden
bovenliggende
commit
88375a4b7a

+ 0
- 17
src/main/java/rocks/zipcode/io/domain/Cohort.java Bestand weergeven

22
     @GeneratedValue(strategy = GenerationType.IDENTITY)
22
     @GeneratedValue(strategy = GenerationType.IDENTITY)
23
     private Long id;
23
     private Long id;
24
 
24
 
25
-    @Column(name = "cohort_id")
26
-    private Double cohortId;
27
-
28
     @Column(name = "grad_date")
25
     @Column(name = "grad_date")
29
     private String gradDate;
26
     private String gradDate;
30
 
27
 
37
         this.id = id;
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
     public String getGradDate() {
37
     public String getGradDate() {
54
         return gradDate;
38
         return gradDate;
55
     }
39
     }
88
     public String toString() {
72
     public String toString() {
89
         return "Cohort{" +
73
         return "Cohort{" +
90
             "id=" + getId() +
74
             "id=" + getId() +
91
-            ", cohortId=" + getCohortId() +
92
             ", gradDate='" + getGradDate() + "'" +
75
             ", gradDate='" + getGradDate() + "'" +
93
             "}";
76
             "}";
94
     }
77
     }

+ 0
- 17
src/main/java/rocks/zipcode/io/domain/Employer.java Bestand weergeven

22
     @GeneratedValue(strategy = GenerationType.IDENTITY)
22
     @GeneratedValue(strategy = GenerationType.IDENTITY)
23
     private Long id;
23
     private Long id;
24
 
24
 
25
-    @Column(name = "employer_id")
26
-    private Long employerId;
27
-
28
     @Column(name = "company_name")
25
     @Column(name = "company_name")
29
     private String companyName;
26
     private String companyName;
30
 
27
 
43
         this.id = id;
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
     public String getCompanyName() {
43
     public String getCompanyName() {
60
         return companyName;
44
         return companyName;
61
     }
45
     }
120
     public String toString() {
104
     public String toString() {
121
         return "Employer{" +
105
         return "Employer{" +
122
             "id=" + getId() +
106
             "id=" + getId() +
123
-            ", employerId=" + getEmployerId() +
124
             ", companyName='" + getCompanyName() + "'" +
107
             ", companyName='" + getCompanyName() + "'" +
125
             ", city='" + getCity() + "'" +
108
             ", city='" + getCity() + "'" +
126
             ", state='" + getState() + "'" +
109
             ", state='" + getState() + "'" +

+ 0
- 17
src/main/java/rocks/zipcode/io/domain/Post.java Bestand weergeven

24
     @GeneratedValue(strategy = GenerationType.IDENTITY)
24
     @GeneratedValue(strategy = GenerationType.IDENTITY)
25
     private Long id;
25
     private Long id;
26
 
26
 
27
-    @Column(name = "post_id")
28
-    private Long postId;
29
-
30
     @Column(name = "jhi_timestamp")
27
     @Column(name = "jhi_timestamp")
31
     private LocalDate timestamp;
28
     private LocalDate timestamp;
32
 
29
 
52
         this.id = id;
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
     public LocalDate getTimestamp() {
52
     public LocalDate getTimestamp() {
69
         return timestamp;
53
         return timestamp;
70
     }
54
     }
155
     public String toString() {
139
     public String toString() {
156
         return "Post{" +
140
         return "Post{" +
157
             "id=" + getId() +
141
             "id=" + getId() +
158
-            ", postId=" + getPostId() +
159
             ", timestamp='" + getTimestamp() + "'" +
142
             ", timestamp='" + getTimestamp() + "'" +
160
             ", content='" + getContent() + "'" +
143
             ", content='" + getContent() + "'" +
161
             ", likes='" + getLikes() + "'" +
144
             ", likes='" + getLikes() + "'" +

+ 0
- 17
src/main/java/rocks/zipcode/io/domain/Privacy.java Bestand weergeven

22
     @GeneratedValue(strategy = GenerationType.IDENTITY)
22
     @GeneratedValue(strategy = GenerationType.IDENTITY)
23
     private Long id;
23
     private Long id;
24
 
24
 
25
-    @Column(name = "privacy_id")
26
-    private Long privacyId;
27
-
28
     @Column(name = "public_view")
25
     @Column(name = "public_view")
29
     private Boolean publicView;
26
     private Boolean publicView;
30
 
27
 
43
         this.id = id;
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
     public Boolean isPublicView() {
43
     public Boolean isPublicView() {
60
         return publicView;
44
         return publicView;
61
     }
45
     }
120
     public String toString() {
104
     public String toString() {
121
         return "Privacy{" +
105
         return "Privacy{" +
122
             "id=" + getId() +
106
             "id=" + getId() +
123
-            ", privacyId=" + getPrivacyId() +
124
             ", publicView='" + isPublicView() + "'" +
107
             ", publicView='" + isPublicView() + "'" +
125
             ", cohortView='" + isCohortView() + "'" +
108
             ", cohortView='" + isCohortView() + "'" +
126
             ", employerView='" + isEmployerView() + "'" +
109
             ", employerView='" + isEmployerView() + "'" +

+ 0
- 17
src/main/java/rocks/zipcode/io/domain/UserProfile.java Bestand weergeven

23
     @GeneratedValue(strategy = GenerationType.IDENTITY)
23
     @GeneratedValue(strategy = GenerationType.IDENTITY)
24
     private Long id;
24
     private Long id;
25
 
25
 
26
-    @Column(name = "profile_id")
27
-    private Long profileId;
28
-
29
     @Column(name = "first_name")
26
     @Column(name = "first_name")
30
     private String firstName;
27
     private String firstName;
31
 
28
 
55
         this.id = id;
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
     public String getFirstName() {
55
     public String getFirstName() {
72
         return firstName;
56
         return firstName;
73
     }
57
     }
170
     public String toString() {
154
     public String toString() {
171
         return "UserProfile{" +
155
         return "UserProfile{" +
172
             "id=" + getId() +
156
             "id=" + getId() +
173
-            ", profileId=" + getProfileId() +
174
             ", firstName='" + getFirstName() + "'" +
157
             ", firstName='" + getFirstName() + "'" +
175
             ", lastName='" + getLastName() + "'" +
158
             ", lastName='" + getLastName() + "'" +
176
             ", userStack='" + getUserStack() + "'" +
159
             ", userStack='" + getUserStack() + "'" +