ajout enum Category et record BookInfo

This commit is contained in:
RKaraMos_EVO
2026-06-11 14:23:15 +02:00
parent abbd3ee95d
commit 1aa83b0911
2 changed files with 43 additions and 0 deletions
@@ -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
}