@Entity public class Rating extends DomainObject
Modifier and Type | Class and Description |
---|---|
static class |
Rating.BIT_MASKS |
Modifier and Type | Method and Description |
---|---|
Integer |
getBitmask() |
Date |
getCreated() |
Long |
getId() |
Integer |
getMax()
The max possible score for this rating
|
Integer |
getRating()
The actual score given
|
String |
getTopic()
Topic the Comment belongs to / Artifact the comment was made on
|
String |
getTopicType()
The topic can be a Article, an Order etc.
Ideally, this is the entity type (class name) or a category to identify the topic |
Date |
getUpdated() |
User |
getUser() |
String |
getUserId()
Deprecated.
Use
getUser() instead |
Integer |
getWeight()
Weight of the score in relation to others
|
void |
setBitmask(Integer bitmask) |
void |
setCreated(Date created) |
void |
setId(Long id) |
void |
setMax(Integer max)
The max possible score for this rating
|
void |
setRating(Integer rating)
The actual score given
|
void |
setTopic(String topic)
Topic the Comment belongs to / Artifact the comment was made on
|
void |
setTopicType(String topicType)
The topic can be a Article, an Order etc.
Ideally, this is the entity type (class name) or a category to identify the topic |
void |
setUpdated(Date updated) |
void |
setUser(User user) |
void |
setUserId(String userId)
Deprecated.
User
setUser(User) instead |
void |
setWeight(Integer weight)
Weight of the score in relation to others
|
protected Long id
public Rating()
public Rating(String json)
public Long getId()
public void setId(Long id)
public String getTopic()
public void setTopic(String topic)
public String getTopicType()
public void setTopicType(String topicType)
public Integer getRating()
public void setRating(Integer rating)
public Integer getMax()
public void setMax(Integer max)
public Integer getWeight()
public void setWeight(Integer weight)
public Integer getBitmask()
public void setBitmask(Integer bitmask)
public Date getCreated()
public void setCreated(Date created)
public Date getUpdated()
public void setUpdated(Date updated)
public User getUser()
public void setUser(User user)
public String getUserId()
getUser()
insteadpublic void setUserId(String userId)
setUser(User)
insteadCopyright © 2018. All rights reserved.