Skip to content
Snippets Groups Projects
Select Git revision
  • de7d4c053ad2bee08dc27e695d8773d67db8bf53
  • main default protected
2 results

modulo1.c3a

Blame
  • Forked from NASR Alexis / 2024_compilation
    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();
    }