package com.bytesw.bytebot.model;

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

import javax.persistence.*;
import java.io.Serializable;

@Entity
@Table(name = "AVB_PROXY")
@NamedQuery(name = "Proxy.findByPK", query = "Select u from Proxy u where u.id = ?1")
@Getter
@Setter
@EqualsAndHashCode
@ToString(exclude = "id")
public class Proxy implements Serializable {
    @Id
    @Column(name = "prox_id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Column(name = "prox_name", nullable = false)
    private String name;

    @Column(name = "prox_details", nullable = false)
    private String details;
}
