Email needs to be an email to create account (BE)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package de.htwsaar.webshop.repository.entities;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
import jakarta.validation.constraints.Email;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
@@ -23,6 +24,7 @@ public class Account {
|
||||
private Customer customer;
|
||||
|
||||
@Column(nullable = false, unique = true)
|
||||
@Email
|
||||
private String email;
|
||||
|
||||
@Column(nullable = false)
|
||||
|
||||
Reference in New Issue
Block a user