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

am.ik.home.member.MemberForm Maven / Gradle / Ivy

package am.ik.home.member;

import java.io.Serializable;
import java.util.List;

import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotEmpty;
import org.terasoluna.gfw.common.validator.constraints.Compare;

import lombok.Data;

@Data
@Compare(left = "rawPassword", right = "passwordConfirm", operator = Compare.Operator.EQUAL, message = "'rawPassword' and 'passwordConfirm' must be same")
public class MemberForm implements Serializable {
	@NotEmpty
	@Size(max = 255)
	private String givenName;
	@NotEmpty
	@Size(max = 255)
	private String familyName;
	@NotEmpty
	@Size(min = 6, max = 50)
	private String rawPassword;
	@NotEmpty
	@Size(min = 6, max = 50)
	private String passwordConfirm;
	@NotEmpty
	@Size(max = 255)
	@Email
	private String email;
	private List roles;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy