Skip to content
Snippets Groups Projects
Select Git revision
  • cf3ef9686ff1a3c47fdddc393823eaac3345a842
  • main default
  • Hayat2
  • branch_aichatou
  • Hayat
5 results

Notification.java

Blame
  • 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();
    }