fix: removed contradictive @NotNull preventing to add data to database.
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
package enseirb.myinpulse.model;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
|
||||
@Entity
|
||||
@Table(name = "user_inpulse")
|
||||
@ -9,7 +8,6 @@ import jakarta.validation.constraints.NotNull;
|
||||
public class User {
|
||||
|
||||
@Id
|
||||
@NotNull
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Long idUser;
|
||||
|
||||
|
Reference in New Issue
Block a user