ModelUzyTavActaPrueba.java 1.6 KB
Newer Older
1
package ec.edu.espe.movilidad.MovilidadWS.Model;
2

3

4
import com.fasterxml.jackson.annotation.JsonIgnore;
5 6 7

import lombok.Getter;
import lombok.Setter;
8 9 10 11

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.*;
12 13
import javax.validation.constraints.Size;
import java.time.LocalDate;
14
import java.util.LinkedHashSet;
15 16
import java.util.Set;

17 18
@Getter
@Setter
19 20
@Entity
@Table(name = "uzytavactaprueba", schema = "UTIC1")
21
public class ModelUzyTavActaPrueba {
22 23

    @Id
24 25
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "uzytavactaprueba_seq")
    @SequenceGenerator(name = "uzytavactaprueba_seq", sequenceName = "SEQ_UZYTAVACTAPRUEBA", allocationSize = 1)
26
    @Column(name = "uzytavactaprueba_id")
27
    private Long uzytavactaprueba_id;
28 29

    @Column(name = "uzytusuario_id_aprueba")
30
    private Long uzytusuario_id_aprueba;
31 32

    @Column(name = "uzytavactaprueba_fecha_aprueba")
33
    private LocalDate uzytavactaprueba_fecha_aprueba;
34 35

    @Column(name = "uzytavactaprueba_secuencial_a")
36
    private Long uzytavactaprueba_secuencial_a;
37 38
    @Size(max = 1)
    @Column(name = "uzytavactaprueba_cerrado", length = 1)
39
    private String uzytavactaprueba_cerrado;
40 41
    @Size(max = 100)
    @Column(name = "uzytavactaprueba_doc_nom", length = 100)
42
    private String uzytavactaprueba_doc_nom;
43 44
    @Size(max = 250)
    @Column(name = "uzytavactaprueba_doc_url", length = 250)
45
    private String uzytavactaprueba_doc_url;
46 47


48 49 50
    //RELACION CON PROYECTO - tabla HIJA

    @JsonIgnore
51
    @OneToMany(mappedBy = "uzyTavacAprueba")
52
    private Set<ModelUzyTavProyec> modelUzyTavProyecSet = new LinkedHashSet<>();
53 54

}