Creo ExpReg para meterle las expresiones regulares

parent a99a7cb1
package com.carpooling.carpoolingaoraha.entidades;
import com.carpooling.carpoolingaoraha.utils.ExprReg;
import jakarta.persistence.*;
import org.antlr.v4.runtime.misc.NotNull;
import org.intellij.lang.annotations.Pattern;
......@@ -33,7 +34,7 @@ public class Usuario {
@Id
@NotNull
@Size(min=9, max=9)
@Pattern(regexp=Expr.Reg.DNI)
@Pattern(regexp = ExprReg.DNI)
private String DNI;
@Size(min=9, max=9)
......
package com.carpooling.carpoolingaoraha.utils;
public class ExprReg {
public ExprReg(){}
public static final String DNI = "";
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment