Select Git revision
Forked from
COUETOUX Basile / Vector2021
Source project has a limited visibility.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
Notification.java 751 B
package com.projet.projetIndu.entities;
import jakarta.persistence.*;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import java.time.LocalDateTime;
@Entity
@Table(name = "notifications")
@Getter
@Setter
@NoArgsConstructor
public class Notification {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(columnDefinition = "TEXT")
private String content;
@Enumerated(EnumType.STRING)
@Column(nullable = false)
private NotificationType type;
@Enumerated(EnumType.STRING)
@Column(nullable = false)
private NotificationStatus status;
@Column(nullable = false, updatable = false)
private LocalDateTime createdAt = LocalDateTime.now();
}