30 lines
585 B
Java
Executable File
30 lines
585 B
Java
Executable File
package es.recursoscatolicos.model;
|
|
|
|
import jakarta.persistence.*;
|
|
import lombok.Data;
|
|
import lombok.NoArgsConstructor;
|
|
|
|
import java.time.LocalDate;
|
|
|
|
@Entity
|
|
@Table(name = "santo_del_dia")
|
|
@Data
|
|
@NoArgsConstructor
|
|
public class SantoDelDia {
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
private Long id;
|
|
|
|
@Column(nullable = false, unique = true)
|
|
private LocalDate fecha;
|
|
|
|
@Column(nullable = false, length = 100)
|
|
private String santo;
|
|
|
|
@Column(length = 255)
|
|
private String descripcion;
|
|
|
|
@Column(length = 20)
|
|
private String color;
|
|
}
|