package com.bytesw.bytebot.etl.model;

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

import javax.persistence.*;

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

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

    @Column(name = "inten_ident")
    private String identifier;

    @Column(name = "intent_is_sensible")
    private String sensible;

    @Column(name = "agen_id")
    private Long agenId;
}
