All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.salesmanager.shop.model.customer.SecuredCustomer Maven / Gradle / Ivy

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;
    }
	
	

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy