@Entity public class Poetry extends Story
| Constructor and Description |
|---|
Poetry()
Empty builder
|
Poetry(int idStory,
String text,
Theme theme1,
Theme theme2,
User autor,
Date date,
String poetryText)
Builder of a Poetry
|
Poetry(String text,
Theme theme1,
Theme theme2,
User autor,
Date date,
String poetryText)
Builder of a Poetry without id
|
Poetry(String text,
Theme theme1,
User autor,
Date date,
String poetryText)
Builder of a Poetry without id and theme2
|
| Modifier and Type | Method and Description |
|---|---|
void |
setText(String text)
It allows the modification of the text field, in case of having more than 500
characters it shows an exception
|
public Poetry(String text, Theme theme1, User autor, Date date, String poetryText)
text - theme1 - autor - date - poetryText - public Poetry(String text, Theme theme1, Theme theme2, User autor, Date date, String poetryText)
text - theme1 - theme2 - autor - date - poetryText - public Poetry(int idStory,
String text,
Theme theme1,
Theme theme2,
User autor,
Date date,
String poetryText)
idStory - text - theme1 - theme2 - autor - date - poetryText - public Poetry()
Copyright © 2020. All rights reserved.