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

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

    @Column(name = "user_ident")
    private String identifier;
}
