@Entity public class Story extends Object
| Constructor and Description |
|---|
Story() |
Story(Integer id,
String title,
String text,
Genre genre,
Topic topic,
Topic subtopic,
User author,
Date date,
boolean published) |
| Modifier and Type | Method and Description |
|---|---|
void |
addVisit(Visit visit) |
boolean |
equals(Object o) |
User |
getAuthor() |
Date |
getDate() |
Set<User> |
getFavoriteOf() |
Genre |
getGenre() |
Integer |
getId() |
Topic |
getSubtopic() |
String |
getText() |
String |
getTitle() |
Topic |
getTopic() |
Collection<Visit> |
getVisits() |
int |
hashCode() |
boolean |
hasVisit(Visit visit) |
boolean |
isPublished() |
void |
setAuthor(User author) |
void |
setDate(Date date) |
void |
setGenre(Genre genre) |
void |
setPublished(boolean published) |
void |
setSubtopic(Topic subtopic) |
void |
setText(String text) |
void |
setTitle(String title) |
void |
setTopic(Topic topic) |
String |
toString() |
public Integer getId()
public String getTitle()
public void setTitle(String title)
public String getText()
public void setText(String text)
public Genre getGenre()
public void setGenre(Genre genre)
public Topic getTopic()
public void setTopic(Topic topic)
public Topic getSubtopic()
public void setSubtopic(Topic subtopic)
public User getAuthor()
public void setAuthor(User author)
public Date getDate()
public void setDate(Date date)
public boolean isPublished()
public void setPublished(boolean published)
public Collection<Visit> getVisits()
public void addVisit(Visit visit)
public boolean hasVisit(Visit visit)
Copyright © 2021. All rights reserved.