ohctechv3/.svn/pristine/3f/3fb6275c735fbab537141cdbeff2b382f09e06af.svn-base
2024-10-28 15:03:36 +05:30

83 lines
1.6 KiB
Plaintext

package com.healthcare.ohctech.entity;
import jakarta.persistence.*;
import org.hibernate.annotations.UpdateTimestamp;
import java.time.LocalDateTime;
import java.time.LocalTime;
@Entity
@Table(name = "appoinment_slots")
public class AppoinmentSlot {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "slot_id")
private Long id;
@Column(name = "slot")
private LocalTime slot;
@Column(name = "slot_end")
private LocalTime slotEnd;
@Column(name = "slot_count")
private int slotCount;
@Column(name = "app_type")
private String appType;
@Column(name = "last_modified")
@UpdateTimestamp
private LocalDateTime lastModified;
// Getters and Setters
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public LocalTime getSlot() {
return slot;
}
public void setSlot(LocalTime slot) {
this.slot = slot;
}
public LocalTime getSlotEnd() {
return slotEnd;
}
public void setSlotEnd(LocalTime slotEnd) {
this.slotEnd = slotEnd;
}
public int getSlotCount() {
return slotCount;
}
public void setSlotCount(int slotCount) {
this.slotCount = slotCount;
}
public String getAppType() {
return appType;
}
public void setAppType(String appType) {
this.appType = appType;
}
public LocalDateTime getLastModified() {
return lastModified;
}
public void setLastModified(LocalDateTime lastModified) {
this.lastModified = lastModified;
}
}