Skip to content

Instantly share code, notes, and snippets.

@greenido
Created July 5, 2012 10:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save greenido/3052788 to your computer and use it in GitHub Desktop.
Save greenido/3052788 to your computer and use it in GitHub Desktop.
Comment class for our birra app server side REST end point
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Comment {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Long commentId;
private User user;
private String date;
private Long beerId;
private String comment;
public Long getCommentId() {
return commentId;
}
public void setCommentId(Long commentId) {
this.commentId = commentId;
}
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}
public String getDate() {
return date;
}
public void setDate(String date) {
this.date = date;
}
public Long getBeerId() {
return beerId;
}
public void setBeerId(Long beerId) {
this.beerId = beerId;
}
public String getComment() {
return comment;
}
public void setComment(String comment) {
this.comment = comment;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment