package jp.kobe_u.cs27.newse.medicalcheck.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 健康診断の受診者エンティティ
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity
public class Person {
    @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    private Long number;  //受診番号

    private String name;   //受診者名前

    @Temporal(TemporalType.DATE)
    private Date birthday; //誕生日

    private double height; //身長 cm

    private double weight; //体重 kg
    
    @Temporal(TemporalType.TIMESTAMP)
    private Date checkedAt; //検針日

}