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

README.md

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