Skip to content
Snippets Groups Projects
Commit d2452752 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Added phone field

parent 6b43f4f9
No related branches found
No related tags found
No related merge requests found
/* /*
* Copyright (c) 2014 NIBIO <http://www.nibio.no/>. * Copyright (c) 2015 NIBIO <http://www.nibio.no/>.
* *
* This file is part of VIPSLogic. * This file is part of VIPSLogic.
* VIPSLogic is free software: you can redistribute it and/or modify * VIPSLogic is free software: you can redistribute it and/or modify
...@@ -45,7 +45,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; ...@@ -45,7 +45,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.UUID; import java.util.UUID;
/** /**
* @copyright 2013 <a href="http://www.nibio.no/">NIBIO</a> * @copyright 2015 <a href="http://www.nibio.no/">NIBIO</a>
* @author Tor-Einar Skog <tor-einar.skog@nibio.no> * @author Tor-Einar Skog <tor-einar.skog@nibio.no>
*/ */
@Entity @Entity
...@@ -68,6 +68,8 @@ public class VipsLogicUser implements Serializable { ...@@ -68,6 +68,8 @@ public class VipsLogicUser implements Serializable {
@Pattern(regexp = "[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?", message = "Invalid email") @Pattern(regexp = "[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?", message = "Invalid email")
@Size(max = 1023) @Size(max = 1023)
private String email; private String email;
@Size(max = 63)
private String phone;
@Size(max = 255) @Size(max = 255)
private String firstName; private String firstName;
@Size(max = 255) @Size(max = 255)
...@@ -387,4 +389,18 @@ public class VipsLogicUser implements Serializable { ...@@ -387,4 +389,18 @@ public class VipsLogicUser implements Serializable {
public void setPreferredLocale(String preferredLocale) { public void setPreferredLocale(String preferredLocale) {
this.preferredLocale = preferredLocale; this.preferredLocale = preferredLocale;
} }
/**
* @return the phone
*/
public String getPhone() {
return phone;
}
/**
* @param phone the phone to set
*/
public void setPhone(String phone) {
this.phone = phone;
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment