@Entity(name="Story") public class Story extends Object implements Serializable
| Constructor and Description |
|---|
Story(String title,
String author,
Date dateOfPublish,
Genre genre,
String text,
Theme... themes) |
Story(String title,
String author,
Genre genre,
String text) |
Story(String title,
String author,
Genre genre,
String text,
Theme... themes) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTheme(Theme theme) |
String |
getAuthor() |
Date |
getDateOfPublish() |
Genre |
getGenre() |
int |
getId() |
String |
getText() |
Collection<Theme> |
getThemes() |
String |
getTitle() |
boolean |
ownsTheme(Theme theme) |
void |
removeTheme(Theme theme) |
void |
setAuthor(String author) |
void |
setDateOfPublish(Date dateOfPublish) |
void |
setGenre(Genre genre) |
void |
setText(String text) |
void |
setTitle(String title) |
String |
toString() |
public int getId()
public String getTitle()
public void setTitle(String title)
public String getAuthor()
public void setAuthor(String author)
public Date getDateOfPublish()
public void setDateOfPublish(Date dateOfPublish)
public String getText()
public void setText(String text)
public Genre getGenre()
public void setGenre(Genre genre)
public Collection<Theme> getThemes()
public void addTheme(Theme theme)
public void removeTheme(Theme theme)
public boolean ownsTheme(Theme theme)
Copyright © 2018. All rights reserved.