-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Hibernate custom validation messages
PostPosted: Tue Jul 28, 2009 1:52 pm 
Newbie

Joined: Fri Jul 24, 2009 6:14 am
Posts: 9
Hi!

Any plans to configure custom messages other way than to overriding the org.hibernate.validator.resources.DefaultValidatorMessages.properties?

The ValidatorMessages.properties feature in the classpath is vaporware. Or is the validator so bad that nobody is using it? (for example it can't validate fields that can be empty (with the exception of a Pattern that defines that, any other validator does not work there)?

And on the server everything is localized, but the hibernate messages are always in english. Same setting as on my client, except of the system locale (german on my workstation and english on the server).

Please just tell me if anybody got something working with that or what do you use for validation? Imho the validator is absolutely useless.

Thank you very much in advance!

Regards,

Anton


Top
 Profile  
 
 Post subject: Re: Hibernate custom validation messages
PostPosted: Tue Jul 28, 2009 2:57 pm 
Newbie

Joined: Fri Jul 24, 2009 6:14 am
Posts: 9
OK, after even more googling...:

Do NOT use hibernate validators. They are completely useless (only for mandatory/required fields and one language - you have to set the system locale and patch the jar file)...

Just in case another poor idiot (like me) thinks that this could be something useful...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.