ajout enum Category et record BookInfo
This commit is contained in:
@@ -0,0 +1,19 @@
|
|||||||
|
package fr.iut_fbleau.but3.dev62.mylibrary.book;
|
||||||
|
|
||||||
|
import fr.iut_fbleau.but3.dev62.mylibrary.book.entity.Category;
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public record BookInfo(
|
||||||
|
long isbn,
|
||||||
|
String title,
|
||||||
|
String author,
|
||||||
|
String publisher,
|
||||||
|
LocalDate publicationDate,
|
||||||
|
double price,
|
||||||
|
int quantity,
|
||||||
|
List<Category> categories,
|
||||||
|
String description,
|
||||||
|
String language
|
||||||
|
) {
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
package fr.iut_fbleau.but3.dev62.mylibrary.book.entity;
|
||||||
|
|
||||||
|
public enum Category {
|
||||||
|
FICTION,
|
||||||
|
NON_FICTION,
|
||||||
|
SCIENCE_FICTION,
|
||||||
|
FANTASY,
|
||||||
|
MYSTERY,
|
||||||
|
THRILLER,
|
||||||
|
ROMANCE,
|
||||||
|
BIOGRAPHY,
|
||||||
|
HISTORY,
|
||||||
|
POETRY,
|
||||||
|
CHILDRENS,
|
||||||
|
YOUNG_ADULT,
|
||||||
|
SCIENCE,
|
||||||
|
PHILOSOPHY,
|
||||||
|
SELF_HELP,
|
||||||
|
TRAVEL,
|
||||||
|
COOKING,
|
||||||
|
ART,
|
||||||
|
RELIGION,
|
||||||
|
REFERENCE
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user