Created
July 5, 2012 10:17
-
-
Save greenido/3052788 to your computer and use it in GitHub Desktop.
Comment class for our birra app server side REST end point
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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