Tecnologia.java 586 Bytes
Newer Older
1 2
package com.roshka.modelo;

3 4 5 6 7 8
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
9
import javax.validation.constraints.NotBlank;
10

11
import lombok.Data;
12

13 14

@Entity @Data
15
@Table(name="tecnologia")
16
public class Tecnologia {
17
   @GeneratedValue(strategy = GenerationType.IDENTITY)
18 19
	@Id
	@Column(name="id")
20
	private Long id;
21 22
	
	@Column(name="nombre")
23
	@NotBlank(message = "Este campo no puede estar vacio")
24 25
    private String nombre;
    
26
}