// Path: api/src/main/java/org/esbtools/message/admin/model/EsbMessage.java
// public enum ErrorType {
//     DATA_ERROR, SYSTEM_ERROR
// }


import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import org.esbtools.message.admin.model.EsbMessage.ErrorType;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;

    @Column(name = "message_type")
    private String messageType;

    @Column(name="source_queue")
    private String sourceQueue;

    @Column(name="source_location")
    private String sourceLocation;

    @Column(name="source_system")
    private String sourceSystem;

    @Column(name="service_name")
    private String serviceName;

    @Column(name="error_component")
    private String errorComponent;

    @Column(name="error_message")
    private String errorMessage;

    @Column(name="error_details")
    private String errorDetails;

    @Column(name = "error_system")
    private String errorSystem;

    @Enumerated(EnumType.STRING)
    @Column(name = "error_type")
// Path: api/src/main/java/org/esbtools/message/admin/model/EsbMessage.java
// public enum ErrorType {
//     DATA_ERROR, SYSTEM_ERROR
// }


// Path: common/src/main/java/org/esbtools/message/admin/common/orm/EsbMessageEntity.java
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import org.esbtools.message.admin.model.EsbMessage.ErrorType;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;


    @Column(name = "message_type")
    private String messageType;

    @Column(name="source_queue")
    private String sourceQueue;

    @Column(name="source_location")
    private String sourceLocation;

    @Column(name="source_system")
    private String sourceSystem;

    @Column(name="service_name")
    private String serviceName;

    @Column(name="error_component")
    private String errorComponent;

    @Column(name="error_message")
    private String errorMessage;

    @Column(name="error_details")
    private String errorDetails;

    @Column(name = "error_system")
    private String errorSystem;

    @Enumerated(EnumType.STRING)
    @Column(name = "error_type")
    private ErrorType errorType;