public class Comment extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
FIND_BY_AUTHOR_ID
Name of named query to retrieve a list of comments by its author.
|
static String |
FIND_BY_POST_ID
Name of named query to retrieve a list of comments by its associated post.
|
Constructor and Description |
---|
Comment()
Constructor for JPA.
|
Comment(String comment,
String authorId,
String postId,
String serviceInstanceId) |
Modifier and Type | Method and Description |
---|---|
String |
getAuthor()
Returns the ownerId.
|
String |
getComment()
Returns the comment.
|
Date |
getCreation()
Returns the creation.
|
String |
getId()
Returns the id.
|
String |
getPostId()
Returns the postId.
|
Boolean |
getRemoved()
Returns the removed.
|
String |
getServiceInstanceId()
Returns the serviceInstanceId.
|
void |
setAuthor(String author)
Sets the ownerId.
|
void |
setComment(String comment)
Sets the comment.
|
void |
setCreation(Date creation)
Sets the creation.
|
void |
setId(String id)
Sets the id.
|
void |
setPostId(String postId)
Sets the postId.
|
void |
setRemoved(Boolean removed)
Sets the removed.
|
void |
setServiceInstanceId(String serviceInstanceId)
Sets the serviceInstanceId.
|
String |
toString() |
public static final String FIND_BY_AUTHOR_ID
authorId
public static final String FIND_BY_POST_ID
postId
public String getId()
public void setId(String id)
id
- the id value to set.public String getComment()
public void setComment(String comment)
comment
- the comment value to set.public String getAuthor()
public void setAuthor(String author)
author
- the ownerId value to set.public String getPostId()
public void setPostId(String postId)
postId
- the postId value to set.public String getServiceInstanceId()
public void setServiceInstanceId(String serviceInstanceId)
serviceInstanceId
- the serviceInstanceId value to set.public Date getCreation()
public void setCreation(Date creation)
creation
- the creation value to set.public Boolean getRemoved()
public void setRemoved(Boolean removed)
removed
- the removed value to set.LumisXP 12.2.0.200122 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.