Commit 31f35de7 by Joel Florentin

modelo con atributos experiencia tecnologia

parent 81ee7740
package com.roshka.modelo; package com.roshka.modelo;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
@Entity
@Table(name = "experiencia_tecnologia")
public class ExperienciaTecnologia { public class ExperienciaTecnologia {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
@ManyToOne
@JoinColumn
private Experiencia experencia;
@ManyToOne
@JoinColumn
private Tecnologia tecnologia;
private Long nivel;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Experiencia getExperencia() {
return experencia;
}
public void setExperencia(Experiencia experencia) {
this.experencia = experencia;
}
public Tecnologia getTecnologia() {
return tecnologia;
}
public void setTecnologia(Tecnologia tecnologia) {
this.tecnologia = tecnologia;
}
public Long getNivel() {
return nivel;
}
public void setNivel(Long nivel) {
this.nivel = nivel;
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment