Commit c2be41b4 by Alvaro Ordóñez Romero

Merge remote-tracking branch 'origin/master'

parents 04d63cbc 2d7ce8ce
...@@ -33,7 +33,7 @@ public class Usuario { ...@@ -33,7 +33,7 @@ public class Usuario {
@Id @Id
@NotNull @NotNull
@Size(min=9, max=9) @Size(min=9, max=9)
@Pattern(regexp = ExprReg.DNI) @Pattern(regexp= ExprReg.DNI)
private String DNI; private String DNI;
@Size(min=9, max=9) @Size(min=9, max=9)
......
...@@ -2,6 +2,9 @@ package com.carpooling.carpoolingaoraha.utils; ...@@ -2,6 +2,9 @@ package com.carpooling.carpoolingaoraha.utils;
public class ExprReg { public class ExprReg {
public ExprReg(){} public ExprReg(){}
public static final String DNI = ""; public static final String DNI = "\\\\d{8}[A-HJ-NP-TV-Z]";
public static final int TELEFONO = Integer.parseInt("^[67-9]\\d{8}$");
public static final String EMAIL = "^[A-Za-z0-9+_.-]+@(.+)$";
} }
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