Skip to content

Instantly share code, notes, and snippets.

/CreatedBy.java Secret

Created Jun 8, 2017
Embed
What would you like to do?
Gist
package me.testlikeit.Objects;
public class CreatedBy {
private int id;
private String username;
private String email;
private String first_name;
private String last_name;
public CreatedBy(int id, String username, String email, String first_name, String last_name) {
this.id = id;
this.username = username;
this.email = email;
this.first_name = first_name;
this.last_name = last_name;
}
public CreatedBy(String username) {
this.username = username;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getFirst_name() {
return first_name;
}
public void setFirst_name(String first_name) {
this.first_name = first_name;
}
public String getLast_name() {
return last_name;
}
public void setLast_name(String last_name) {
this.last_name = last_name;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
}
package me.testlikeit.Objects;
public class Rate {
int rate;
String text;
int review_id;
int product;
public int getProduct() {
return product;
}
public void setProduct(int product) {
this.product = product;
}
public int getRate() {
return rate;
}
public void setRate(int rate) {
this.rate = rate;
}
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
public int getReview_id() {
return review_id;
}
public void setReview_id(int review_id) {
this.review_id = review_id;
}
public Rate(int rate, String text, CreatedBy createdBy) {
this.rate = rate;
this.text = text;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.