package com.bytesw.bytebot.etl.model;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.*;
import java.time.OffsetDateTime;

@Cacheable(false)
@Entity
@Getter @Setter @ToString
@Table(name="avb_response")
@NamedQuery(name = "Response.findByPK", query = "Select p from Response p where p.id = ?1")
public class Response {

    @Id
    @Column(name = "respo_id")
    @SequenceGenerator(name = "AVB_RESPONSE_GENERATOR", sequenceName = "AVB_RESPONSE_SEQ", initialValue = 1, allocationSize = 1)
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "AVB_RESPONSE_GENERATOR")
    private Long id;

    @Column(name = "respo_date")
    private OffsetDateTime date;

    @Column(name = "respo_cont")
    private String content;

    @Column(name = "respo_corr")
    private int correlative;

    @Column(name = "session_id")
    private Long sessionId;
}
