Don't set the min property. If a field is null then it isn't the minimum
length ;)
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058036#4058036
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058036
Hibernate validators are really easy to write - you could write your own
@length that counts a null as a valid value.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058037#4058037
Reply to the post :
Hi Peter,
Thanks, I´ll do that.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058095#4058095
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058095
___
jboss-user mailing list
Unfortunatelly the property is already annotated with @Column(nullable=true) as
well.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4057883#4057883
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057883
@Column(name=aColumn, nullable=true)
@Length(min=3, max=30)
public SomeType getSomething(){
return this.something;
}
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4057882#4057882
Reply to the post :