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_ACTION")
@NamedQuery(name = "Action.findByPK", query = "Select p from Action p where p.id = ?1")
public class Action {

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

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

}
