@Entity public class StoryEntity extends Object
| Constructor and Description |
|---|
StoryEntity() |
StoryEntity(Integer id,
String title,
String text,
Gender gender,
Topic topic1,
Topic topic2,
UserEntity author,
Date publicationDate) |
| Modifier and Type | Method and Description |
|---|---|
UserEntity |
getAuthor() |
Gender |
getGender() |
Integer |
getId() |
Date |
getPublicationDate() |
String |
getText() |
String |
getTitle() |
Topic |
getTopic1() |
Topic |
getTopic2() |
List<ViewEntity> |
getViews() |
void |
setAuthor(UserEntity author) |
void |
setGender(Gender gender) |
void |
setId(Integer id) |
void |
setPublicationDate(Date publicationDate) |
void |
setText(String text) |
void |
setTitle(String title) |
void |
setTopic1(Topic topic1) |
void |
setTopic2(Topic topic2) |
void |
setViews(List<ViewEntity> views) |
public Integer getId()
public String getTitle()
public String getText()
public Gender getGender()
public Topic getTopic1()
public Topic getTopic2()
public UserEntity getAuthor()
public Date getPublicationDate()
public List<ViewEntity> getViews()
public void setId(Integer id)
public void setTitle(String title)
public void setText(String text)
public void setGender(Gender gender)
public void setTopic1(Topic topic1)
public void setTopic2(Topic topic2)
public void setPublicationDate(Date publicationDate)
public void setAuthor(UserEntity author)
public void setViews(List<ViewEntity> views)
Copyright © 2023. All rights reserved.