ModelUzyTavActaPrueba.java 1.45 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 12

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.*;
import java.util.Date;
13
import java.util.LinkedHashSet;
14 15
import java.util.Set;

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

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

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

    @Column(name = "uzytavactaprueba_fecha_aprueba")
32
    private Date uzytavactaprueba_fecha_aprueba;
33 34

    @Column(name = "uzytavactaprueba_secuencial_a")
35
    private Long uzytavactaprueba_secuencial_a;
36 37

    @Column(name = "uzytavactaprueba_cerrado")
38
    private String uzytavactaprueba_cerrado;
39 40

    @Column(name = "uzytavactaprueba_doc_nom")
41
    private String uzytavactaprueba_doc_nom;
42 43

    @Column(name = "uzytavactaprueba_doc_url")
44
    private String uzytavactaprueba_doc_url;
45 46


47 48 49
    //RELACION CON PROYECTO - tabla HIJA

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

}