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