Commit 02575b75 by Oscar Gonzalez

se agrega modelo de cumpleaños

parent cb06a58f
package com.roshka.modelo;
import lombok.Data;
import javax.persistence.*;
import javax.validation.constraints.NotBlank;
import java.util.Date;
@Entity @Data
@Table(name="cumpleanos")
public class Birthday {
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Id
@Column(name="id")
private Long id;
@Column(name="nombreCompleto")
@NotBlank(message = "Este campo no puede estar vacio")
private String nombreCompleto;
@Column(name="fecha")
@NotBlank(message = "Este campo no puede estar vacio")
private Date fecha;
}
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