blob: a00929507bb823f462dc1bf46961bc028fec3d8a [file] [log] [blame]
package org.apache.myfaces.extensions.validator.test.initializer;
import org.apache.myfaces.extensions.validator.baseval.annotation.Length;
import org.apache.myfaces.extensions.validator.baseval.annotation.Required;
import org.apache.myfaces.extensions.validator.crossval.annotation.RequiredIf;
import javax.persistence.Id;
/**
* Created by IntelliJ IDEA.
* User: RDUL064
* Date: 7-okt-2010
* Time: 21:55:03
* To change this template use File | Settings | File Templates.
*/
public class DataBean
{
@Id
@Length(maximum = 20)
private String property1;
@RequiredIf(valueOf = "property1")
private String property2;
@Required
private String property3;
private String property4;
public String getProperty1()
{
return property1;
}
public void setProperty1(String property1)
{
this.property1 = property1;
}
public String getProperty2()
{
return property2;
}
public void setProperty2(String property2)
{
this.property2 = property2;
}
public String getProperty3()
{
return property3;
}
public void setProperty3(String property3)
{
this.property3 = property3;
}
public String getProperty4()
{
return property4;
}
public void setProperty4(String property4)
{
this.property4 = property4;
}
}