28 lines
561 B
Java
Executable File
28 lines
561 B
Java
Executable File
package es.recursoscatolicos.model;
|
|
|
|
import jakarta.persistence.*;
|
|
import lombok.Data;
|
|
import lombok.NoArgsConstructor;
|
|
|
|
import java.time.LocalDate;
|
|
|
|
@Entity
|
|
@Table(name = "calendario_liturgico")
|
|
@Data
|
|
@NoArgsConstructor
|
|
public class CalendarioLiturgico {
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
private Long id;
|
|
|
|
@Column(nullable = false, unique = true)
|
|
private LocalDate fecha;
|
|
|
|
@Column(nullable = false, length = 50)
|
|
private String color;
|
|
|
|
@Column(nullable = false, length = 200)
|
|
private String tiempo;
|
|
}
|