119 lines
2.5 KiB
Plaintext
119 lines
2.5 KiB
Plaintext
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 = "referral_point")
|
|
public class ReferralPoint {
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
@Column(name = "referral_point_id")
|
|
private Long id;
|
|
|
|
@NotBlank(message = "Referral point name shouldn't be blank or null")
|
|
@Column(name = "referral_point_name")
|
|
private String referralPointName;
|
|
|
|
@Column(name = "city")
|
|
private String city;
|
|
|
|
@Column(name = "hospital_name")
|
|
private String hospitalName;
|
|
|
|
@Column(name = "address")
|
|
private String address;
|
|
|
|
@Column(name = "contact_detail")
|
|
private String contactDetail;
|
|
|
|
@ManyToOne(fetch = FetchType.LAZY)
|
|
@JoinColumn(name = "id")
|
|
private OhcType ohcType;
|
|
|
|
@Column(name = "modified_by")
|
|
private Long modifiedBy;
|
|
|
|
@Column(name = "created_time")
|
|
@UpdateTimestamp
|
|
private LocalDateTime createdTime;
|
|
|
|
// Getters and Setters
|
|
|
|
|
|
public Long getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Long id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getReferralPointName() {
|
|
return referralPointName;
|
|
}
|
|
|
|
public void setReferralPointName(String referralPointName) {
|
|
this.referralPointName = referralPointName;
|
|
}
|
|
|
|
public String getCity() {
|
|
return city;
|
|
}
|
|
|
|
public void setCity(String city) {
|
|
this.city = city;
|
|
}
|
|
|
|
public String getHospitalName() {
|
|
return hospitalName;
|
|
}
|
|
|
|
public void setHospitalName(String hospitalName) {
|
|
this.hospitalName = hospitalName;
|
|
}
|
|
|
|
public String getAddress() {
|
|
return address;
|
|
}
|
|
|
|
public void setAddress(String address) {
|
|
this.address = address;
|
|
}
|
|
|
|
public String getContactDetail() {
|
|
return contactDetail;
|
|
}
|
|
|
|
public void setContactDetail(String contactDetail) {
|
|
this.contactDetail = contactDetail;
|
|
}
|
|
|
|
public OhcType getOhcType() {
|
|
return ohcType;
|
|
}
|
|
|
|
public void setOhcType(OhcType ohcType) {
|
|
this.ohcType = ohcType;
|
|
}
|
|
|
|
public Long getModifiedBy() {
|
|
return modifiedBy;
|
|
}
|
|
|
|
public void setModifiedBy(Long modifiedBy) {
|
|
this.modifiedBy = modifiedBy;
|
|
}
|
|
|
|
public LocalDateTime getCreatedTime() {
|
|
return createdTime;
|
|
}
|
|
|
|
public void setCreatedTime(LocalDateTime createdTime) {
|
|
this.createdTime = createdTime;
|
|
}
|
|
|
|
}
|