ohctechv3/.svn/pristine/42/420bf5ab77d124e8ff61cb6e36211863ee450332.svn-base

85 lines
1.8 KiB
Plaintext
Raw Normal View History

2024-10-28 15:03:36 +05:30
package com.healthcare.ohctech.entity;
import jakarta.persistence.*;
import jakarta.validation.constraints.NotBlank;
import org.hibernate.annotations.UpdateTimestamp;
import java.time.LocalDateTime;
@Entity
@Table(name = "canteen_master")
public class Canteen {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name="canteen_id")
private Long id;
@Column(name = "canteen_location")
@NotBlank(message = "Canteen location must not be blank or null")
private String canteenLocation;
@Column(name = "canteen_code")
private String canteenCode;
@Column(name = "type")
private String type;
@Column(name = "modified_by")
private Integer modifiedBy;
@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 String getCanteenLocation() {
return canteenLocation;
}
public void setCanteenLocation(String canteenLocation) {
this.canteenLocation = canteenLocation;
}
public String getCanteenCode() {
return canteenCode;
}
public void setCanteenCode(String canteenCode) {
this.canteenCode = canteenCode;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public Integer getModifiedBy() {
return modifiedBy;
}
public void setModifiedBy(Integer modifiedBy) {
this.modifiedBy = modifiedBy;
}
public LocalDateTime getLastModified() {
return lastModified;
}
public void setLastModified(LocalDateTime lastModified) {
this.lastModified = lastModified;
}
}