@Entity public class Story extends Object implements Serializable
| Constructor and Description |
|---|
Story(int id,
String title,
String content,
User author,
Date publicationDate,
Type type,
Topics topic1,
Topics topic2,
int numReads) |
Story(String title,
String content,
User author,
Date publicationDate,
Type type,
Topics topic1,
Topics topic2,
int numReads) |
| Modifier and Type | Method and Description |
|---|---|
User |
getAuthor() |
String |
getContent() |
int |
getId() |
int |
getNumReads() |
Date |
getPublicationDate() |
String |
getTitle() |
Topics |
getTopic1() |
Topics |
getTopic2() |
Type |
getType() |
void |
setAuthor(User author) |
void |
setContent(String content) |
void |
setId(int id) |
void |
setNumReads(int numReads) |
void |
setPublicationDate(Date publicationDate) |
void |
setTitle(String title) |
void |
setTopic1(Topics topic1) |
void |
setTopic2(Topics topic2) |
void |
setType(Type type) |
String |
toString() |
public Story(int id,
String title,
String content,
User author,
Date publicationDate,
Type type,
Topics topic1,
Topics topic2,
int numReads)
public int getId()
public void setId(int id)
public String getTitle()
public void setTitle(String title)
public String getContent()
public void setContent(String content)
public User getAuthor()
public void setAuthor(User author)
public Date getPublicationDate()
public void setPublicationDate(Date publicationDate)
public Type getType()
public void setType(Type type)
public Topics getTopic1()
public void setTopic1(Topics topic1)
public Topics getTopic2()
public void setTopic2(Topics topic2)
public int getNumReads()
public void setNumReads(int numReads)
Copyright © 2020. All rights reserved.