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

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

    @Column(name = "goal_id")
    private Long goalId;

    @Column(name = "action_id")
    private Long actionId;

}
