From a3f2c47f898e3600aba7f17e8f580cde8bfbf246 Mon Sep 17 00:00:00 2001
From: a-takayama <26-a-takayama-scm@it-college.co.jp>
Date: Mon, 19 Oct 2026 15:35:57 +0900
Subject: [PATCH] Book_collectionentity
---
.project | 11 ++
.../demo/entity/Book_collectionEntity.java | 116 +++++++++++++++++-
2 files changed, 126 insertions(+), 1 deletion(-)
create mode 100644 .project
diff --git a/.project b/.project
new file mode 100644
index 0000000..a59a30a
--- /dev/null
+++ b/.project
@@ -0,0 +1,11 @@
+
+
+ last-group-delevelopment-team1
+
+
+
+
+
+
+
+
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 c755eb6..b761192 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
@@ -1,5 +1,119 @@
package com.example.demo.entity;
+
+import java.sql.Date;
+import jakarta.persistence.Column;
+import jakarta.persistence.Entity;
+import jakarta.persistence.GeneratedValue;
+import jakarta.persistence.GenerationType;
+import jakarta.persistence.Id;
+import jakarta.persistence.Table;
+
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+@Table(name = "book_collection")
+@Entity
+@Data
+@NoArgsConstructor
+@AllArgsConstructor
public class Book_collectionEntity {
-
+
+
+ //蔵書ID
+ @Id
+ @GeneratedValue(strategy = GenerationType.IDENTITY)
+ @Column(name = "id_book", nullable = false)
+ private Integer idBook;
+
+ //ISBN
+ @Column(name = "isbn", nullable = false)
+ private String isBn;
+
+ //書籍名
+ @Column(name = "nm_book", nullable = false)
+ private String nmBook;
+
+ //書籍名よみ
+ @Column(name = "kn_book", nullable = true)
+ private String knBook;
+
+ //出版社
+ @Column(name = "publisher", nullable = true)
+ private String pubLisher;
+
+ //特記事項
+ @Column(name = "note text", nullable = true)
+ private String noteText;
+
+ //貸出フラグ
+ @Column(name = "flg_lending", length = 1, nullable = false)
+ private String flgLending;
+
+ //更新者
+ @Column(name = "id_update", nullable = false)
+ private Integer idUpdate;
+
+ //更新日
+ @Column(name = "date_update", nullable = false)
+ private Date dateUpdate;
+
+// public static Book_collection convertFrom(Book_collection book_collection) {
+// // 値を既に持ったインスタンスの生成に、コンストラクタを使用するとこうなります。
+// return new Book_collection Entity(
+// book_colletion.getIdBook(),
+// book_colletion.getisBn(),
+// book_colletion.getnmBook(),
+// book_colletion..getknBook(),
+// book_colletion.getpublisher(),
+// book_colletion.getnoteText(),
+// book_colletion.getflgLending(),
+// book_colletion.getidUpdate(),
+// book_colletion.getdateUupdate()
+// );
+//
+//}
+//public static EmployeeEntity convertFrom(SearchConditionEmployee searchConditionEmployee) {
+// EmployeeEntity employeeEntity = new EmployeeEntity();
+//
+// employeeEntity.setIdBook(searchConditionEmployee.getIdBook());
+// employeeEntity.setisBn(searchConditionEmployee.getisBn());
+// employeeEntity.setnmBook(searchConditionEmployee.getnmBook());
+
+// employeeEntity.setknBook(searchConditionEmployee.knBook());
+// employeeEntity.setpublisher(searchConditionEmployee.getpublisher());
+// employeeEntity.setnoteText(searchConditionEmployee.getnoteText());
+// employeeEntity.setflgLending(searchConditionEmployee.getflgLending());
+// employeeEntity.setidUpdate(searchConditionEmployee.getidUpdate());
+// employeeEntity.setdateUpdate(searchConditionEmployee.getdateUupdate());
+
+
+//
+//// public static List createbook_collectionList(List employeeEntityList) {
+//// return employeeEntityList.stream().map(EmployeeEntity::createbook_collection).toList();
+//// }
+//
+// List book_collectionList = new ArrayList<>();
+// for(book_collectionEntity book_collectionEntity:employeeEntityList){
+// book_collection employee = book_collectionEntity.createbook_collection(book_collectionEntity);
+// book_collectionList.add(employee);
+// }
+// return employeeList;
+//
+//
+// public LoginUser createLoginUser() {
+// // 値を既に持ったインスタンスの生成に、コンストラクタを使用するとこうなります。
+// return new LoginUser(
+// getidBook(),
+// getisBn(),
+// getnmBook(),
+// getknBook(),
+// getpublisher(),
+// getnoteText(),
+// getflgLending(),
+// getidUpdate(),
+// getdateUpdate()
+// );
+// }
}