ModelUzyTLineaOperativa.java 1.1 KB
Newer Older
1 2
package ec.edu.espe.movilidad.MovilidadWS.Model;

3
import com.fasterxml.jackson.annotation.JsonIgnore;
4

5 6
import lombok.Getter;
import lombok.Setter;
7 8
import javax.persistence.*;
import javax.validation.constraints.Size;
9
import java.util.LinkedHashSet;
10 11
import java.util.Set;

12 13
@Getter
@Setter
14
@Entity
15 16
@Table(name = "UZYTLINEAOPERATIVA", schema = "UTIC1")
public class ModelUzyTLineaOperativa {
17 18

    @Id
19 20
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "uzytavlineaoperativa_seq")
    @SequenceGenerator(name = "uzytavlineaoperativa_seq", sequenceName = "SEQ_UZYTAVLINEAOPERATIVA", allocationSize = 1)
21 22
    @Column(name = "uzytavlineaoperativa_ID")
    private Long uzytavlineaoperativa_ID;
23 24

    @Size(max = 1000)
25 26
    @Column(name = "uzytavlineaoperativa_DESCRIP", length = 1000)
    private String uzytavlineaoperativa_DESCRIP;
27 28

    @Size(max = 1)
29 30
    @Column(name = "uzytavlineaoperativa_ESTADO", length = 1)
    private String uzytavlineaoperativa_ESTADO;
31 32


33 34
    @JsonIgnore
    @OneToMany(mappedBy = "uzytlineaoperativa")
35
    private Set<ModelUzyTavPrograma_V> modelUzyTavProgramaVSet = new LinkedHashSet<>();
36 37 38


}