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.
* VIPSLogic is free software: you can redistribute it and/or modify
......@@ -45,7 +45,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore;
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>
*/
@Entity
......@@ -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")
@Size(max = 1023)
private String email;
@Size(max = 63)
private String phone;
@Size(max = 255)
private String firstName;
@Size(max = 255)
......@@ -387,4 +389,18 @@ public class VipsLogicUser implements Serializable {
public void setPreferredLocale(String 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