From b5b09531e5f76316e66164d24d3d799ec404b4ed Mon Sep 17 00:00:00 2001 From: Joaquin Elias Baranda Ayala Date: Fri, 29 Oct 2021 08:43:52 -0300 Subject: [PATCH] actualizacion de clases tecnologia --- curriculumsearch/src/main/java/com/roshka/modelo/Tecnologia.java | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/curriculumsearch/src/main/java/com/roshka/modelo/Tecnologia.java b/curriculumsearch/src/main/java/com/roshka/modelo/Tecnologia.java index e144750..a870a28 100644 --- a/curriculumsearch/src/main/java/com/roshka/modelo/Tecnologia.java +++ b/curriculumsearch/src/main/java/com/roshka/modelo/Tecnologia.java @@ -1,5 +1,38 @@ package com.roshka.modelo; +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.GenerationType; +import javax.persistence.Id; +import javax.persistence.Table; + +@Entity +@Table(name="tecnologia") public class Tecnologia { + @GeneratedValue(strategy = GenerationType.AUTO) + @Id + @Column(name="id") + private long id; + + @Column(name="nombre") + private String nombre; + + + public long getId() { + return id; + } + public void setId(long id) { + this.id = id; + } + public String getNombre() { + return nombre; + } + public void setNombre(String nombre) { + this.nombre = nombre; + } + + + } -- libgit2 0.26.0