com.salesmanager.shop.model.customer.SecuredCustomer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sm-shop-model Show documentation
Show all versions of sm-shop-model Show documentation
sm-shop-model contains Shopizer model objects for api
The newest version!
package com.salesmanager.shop.model.customer;
import java.io.Serializable;
import javax.validation.constraints.Size;
import com.salesmanager.shop.validation.FieldMatch;
@FieldMatch.List({
@FieldMatch(first="password",second="checkPassword",message="password.notequal")
})
public class SecuredCustomer extends PersistableCustomer implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
@Size(min=6, message="{registration.password.not.empty}")
private String password;
@Size(min=6, message="{registration.password.not.empty}")
private String checkPassword;
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getCheckPassword()
{
return checkPassword;
}
public void setCheckPassword( String checkPassword )
{
this.checkPassword = checkPassword;
}
}