ohctechv3/.svn/pristine/55/5523e5ec849200d51cdf79091036801aee4da613.svn-base

74 lines
1.5 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 = "config")
public class Config {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id")
private Long id;
@NotBlank(message = "Key name shouldn't be null or blank ")
@Column(name = "key_name")
private String keyName;
@Column(name = "value")
private String value;
@Column(name = "modified_by")
private Long 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 getKeyName() {
return keyName;
}
public void setKeyName(String keyName) {
this.keyName = keyName;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public Long getModifiedBy() {
return modifiedBy;
}
public void setModifiedBy(Long modifiedBy) {
this.modifiedBy = modifiedBy;
}
public LocalDateTime getLastModified() {
return lastModified;
}
public void setLastModified(LocalDateTime lastModified) {
this.lastModified = lastModified;
}
}