diff --git a/team1/src/main/java/com/example/demo/entity/Book_collectionEntity.java b/team1/src/main/java/com/example/demo/entity/Book_collectionEntity.java index 21a88f6..8bda2d8 100644 --- a/team1/src/main/java/com/example/demo/entity/Book_collectionEntity.java +++ b/team1/src/main/java/com/example/demo/entity/Book_collectionEntity.java @@ -31,19 +31,19 @@ public class Book_collectionEntity { private Integer idBook; //ISBN - @Column(name = "isbn", nullable = false) + @Column(name = "isbn", nullable = false, length = 13) private String isBn; //書籍名 - @Column(name = "nm_book", nullable = false) + @Column(name = "nm_book", nullable = false, length = 50) private String nmBook; //書籍名よみ - @Column(name = "kn_book", nullable = true) + @Column(name = "kn_book", nullable = true, length = 100) private String knBook; //出版社 - @Column(name = "publisher", nullable = true) + @Column(name = "publisher", nullable = true, length = 50) private String pubLisher; //特記事項 @@ -51,8 +51,8 @@ public class Book_collectionEntity { private String noteText; //貸出フラグ -> charに変更する - @Column(name = "flg_lending", length = 1, nullable = false) - private String flgLending; + @Column(name = "flg_lending", nullable = false, columnDefinition = "default 0") + private Character flgLending; //更新者 @Column(name = "id_update", nullable = false)