All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.estuaryoss.agent.entity.Command Maven / Gradle / Ivy

There is a newer version: 4.2.6
Show newest version
package com.github.estuaryoss.agent.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

import static com.github.estuaryoss.agent.constants.HibernateJpaConstants.*;

@Entity
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
public class Command {
    @Id
    @GeneratedValue
    @Column(name = "ID") //DB
    private Long id;

    @Column(name = "COMMAND", length = COMMAND_MAX_SIZE)
    private String command;

    @Column(name = "CODE")
    private Long code;

    @Column(name = "OUT", length = COMMAND_STDOUT_MAX_SIZE)
    private String out;

    @Column(name = "ERR", length = COMMAND_STDERR_MAX_SIZE)
    private String err;

    @Column(name = "STARTED_AT")
    private String startedAt;

    @Column(name = "FINISHED_AT")
    private String finishedAt;

    @Column(name = "DURATION")
    private Float duration;

    @Column(name = "PID")
    private Long pid;

    @Column(name = "STATUS")
    private String status;

    @Column(name = "ARGS")
    @Length(max = COMMAND_MAX_SIZE)
    private String args;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy