50 lines
877 B
Java
50 lines
877 B
Java
package com.baeldung.graphql;
|
|
|
|
public class Post {
|
|
private String id;
|
|
private String title;
|
|
private String text;
|
|
private String category;
|
|
private String authorId;
|
|
|
|
public String getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(String id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getTitle() {
|
|
return title;
|
|
}
|
|
|
|
public void setTitle(String title) {
|
|
this.title = title;
|
|
}
|
|
|
|
public String getText() {
|
|
return text;
|
|
}
|
|
|
|
public void setText(String text) {
|
|
this.text = text;
|
|
}
|
|
|
|
public String getCategory() {
|
|
return category;
|
|
}
|
|
|
|
public void setCategory(String category) {
|
|
this.category = category;
|
|
}
|
|
|
|
public String getAuthorId() {
|
|
return authorId;
|
|
}
|
|
|
|
public void setAuthorId(String authorId) {
|
|
this.authorId = authorId;
|
|
}
|
|
}
|