24 lines
440 B
Java
24 lines
440 B
Java
package ru.kirillius.pf.sdn.entity;
|
|
|
|
import jakarta.persistence.*;
|
|
import lombok.Getter;
|
|
import lombok.Setter;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Entity
|
|
public class ActionConnectionConfig {
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
private Long id;
|
|
|
|
@ManyToOne(optional = false)
|
|
private ActionConfig from;
|
|
|
|
private int fromPort;
|
|
|
|
@ManyToOne(optional = false)
|
|
private ActionConfig to;
|
|
|
|
private int toPort;
|
|
} |