I have an entoty bean with a property that has a max 255 length. I want to customize the default hibernate validator.length message, in order to display only the max value, not the min value (default validator.length is defined as 'length must be between {min} and {max}').
So I have this code:
@Length(max=255, message="#{messages['validator.length.maxonly']}") @Column(name = "Description", unique = false, nullable = false, insertable = true, updatable = true) public String getDescription() { return this.description; }