This content has been marked as final.
Show 1 reply
-
1. Re: resource bundle doesn't work in entity bean validation
td121136 Jul 22, 2013 12:01 AM (in response to td121136)1 of 1 people found this helpfulAlternative way to solve this issue is to use the ValidationMessages.properties as below:
@Override
@Column(name="PASTTIME",nullable=true)
@Min(value=0,message="{o.package.create.timespan.min.value}")
public Long getPastTimespan() {
return this.pastTimespan;
}
The ValidationMessages.properties must be available in the classpath.