50 lines
1.2 KiB
Java
50 lines
1.2 KiB
Java
package net.gepafin.tendermanagement.entities;
|
|
|
|
import jakarta.persistence.*;
|
|
import lombok.Data;
|
|
import net.gepafin.tendermanagement.config.LocalTimeAttributeConverter;
|
|
import org.hibernate.annotations.Where;
|
|
|
|
import java.time.LocalDateTime;
|
|
import java.time.LocalTime;
|
|
|
|
@Entity
|
|
@Table(name = "PROTOCOL")
|
|
@Data
|
|
@Where(clause = "is_deleted = false")
|
|
public class ProtocolEntity extends BaseEntity {
|
|
|
|
@Column(name = "PROTOCOL_NUMBER", nullable = false)
|
|
private Long protocolNumber;
|
|
|
|
@Column(name = "YEAR", nullable = false)
|
|
private Integer year;
|
|
|
|
@Column(name="CALL_ID")
|
|
private Long call;
|
|
|
|
@Column(name = "TIME", nullable = false)
|
|
@Convert(converter = LocalTimeAttributeConverter.class)
|
|
private LocalTime time;
|
|
|
|
@Column(name="APPLICATION_ID")
|
|
private Long applicationId;
|
|
|
|
@Column(name="HUB_ID")
|
|
private Long hubId;
|
|
|
|
@Column(name = "type")
|
|
private String type;
|
|
|
|
@Column(name = "external_protocol_year")
|
|
private Integer externalProtocolYear;
|
|
|
|
@Column(name = "external_protocol_date")
|
|
private LocalDateTime externalProtocolDate;
|
|
|
|
@Column(name = "external_protocol_number")
|
|
private String externalProtocolNumber;
|
|
|
|
|
|
}
|