Borrow_booksEnity
This commit is contained in:
@@ -1,5 +1,101 @@
|
||||
package com.example.demo.entity;
|
||||
|
||||
import java.security.Timestamp;
|
||||
import java.util.Date;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.GeneratedValue;
|
||||
import jakarta.persistence.GenerationType;
|
||||
import jakarta.persistence.Id;
|
||||
|
||||
import org.hibernate.annotations.Audited.Table;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@Entity
|
||||
@Table(name = "borrow_books")
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class Borrow_booksEntity {
|
||||
|
||||
/*
|
||||
* 申請ID
|
||||
* */
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@Column(name = "id_request", nullable = false)
|
||||
private Integer idRequest;
|
||||
|
||||
/*
|
||||
* 申請者ID
|
||||
* */
|
||||
@Column(name = "id_applicant", nullable = false)
|
||||
private Integer idApplicant;
|
||||
|
||||
/*
|
||||
* 蔵書ID
|
||||
* */
|
||||
@Column(name = "id_book", nullable = false)
|
||||
private Integer idBook;
|
||||
|
||||
/*
|
||||
* 申請日
|
||||
* */
|
||||
@Column(name = "date_request", nullable = false)
|
||||
private Date dateRequest;
|
||||
|
||||
/*
|
||||
* ステータス
|
||||
* */
|
||||
@Column(name = "status", nullable = false)
|
||||
private char 返却済 = 0;
|
||||
private char 承認待 = 1;
|
||||
private char 貸出中 = 2;
|
||||
private char 却下 = 9;
|
||||
|
||||
/*
|
||||
* 承認者
|
||||
* */
|
||||
@Column(name = "id_approval", nullable = true)
|
||||
private Integer idApproval;
|
||||
|
||||
/*
|
||||
* 承認日
|
||||
* */
|
||||
@Column(name = "date_approval", nullable = true)
|
||||
private Date dateApproval;
|
||||
|
||||
/*
|
||||
* 貸出日
|
||||
* */
|
||||
@Column(name = "date_borrow", nullable = false)
|
||||
private Date dateBorrow;
|
||||
|
||||
/*
|
||||
* 返却予定日
|
||||
* */
|
||||
@Column(name = "date_scheduled_return", nullable = false)
|
||||
private Date dateScheduledReturn;
|
||||
|
||||
/*
|
||||
* 返却日
|
||||
* */
|
||||
@Column(name = "date_return", nullable = true)
|
||||
private Date dateReturn;
|
||||
|
||||
/*
|
||||
* 更新者
|
||||
* */
|
||||
@Column(name = "id_update", nullable = false)
|
||||
private Integer idUpdate;
|
||||
|
||||
/*
|
||||
* 更新日
|
||||
* */
|
||||
@Column(name = "date_update", nullable = false)
|
||||
private Timestamp dateUpdate;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user