Email needs to be an email to create account (BE)

This commit is contained in:
Tim
2025-06-17 16:58:26 +02:00
parent 3994d1282f
commit cc67209f7e

View File

@@ -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)