@Entity public class Narrative extends Story
| Constructor and Description |
|---|
Narrative()
Empty builder
|
Narrative(int idStory,
String text,
Theme theme1,
Theme theme2,
User autor,
Date date,
String narrativeText)
Builder of a Narrative
|
Narrative(String text,
Theme theme1,
Theme theme2,
User autor,
Date date,
String narrativeText)
Builder of a Narrative without id
|
Narrative(String title,
Theme theme1,
User autor,
Date date,
String narrativeText)
Builder of a Narrative 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 1000 characters it shows an exception
|
public Narrative(String title, Theme theme1, User autor, Date date, String narrativeText)
title - theme1 - autor - date - narrativeText - public Narrative(String text, Theme theme1, Theme theme2, User autor, Date date, String narrativeText)
text - theme1 - theme2 - autor - date - narrativeText - public Narrative(int idStory,
String text,
Theme theme1,
Theme theme2,
User autor,
Date date,
String narrativeText)
idStory - text - theme1 - theme2 - autor - date - narrativeText - public Narrative()
Copyright © 2019. All rights reserved.