From d119c26b64d6d8361ae46b7dacf8ebc6679eebc7 Mon Sep 17 00:00:00 2001 From: a-takayama <26-a-takayama-scm@it-college.co.jp> Date: Tue, 20 Oct 2026 09:48:14 +0900 Subject: [PATCH] =?UTF-8?q?Book=5Fcollection=E8=BF=BD=E5=8A=A0=20(length?= =?UTF-8?q?=E9=83=A8=E5=88=86)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../example/demo/entity/Book_collectionEntity.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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)