Hibernate Books

All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Custom constraint error message
PostPosted: Thu Aug 30, 2012 8:25 am 
Newbie

Joined: Thu Aug 30, 2012 8:20 am
Posts: 1
Hi

I followed the hibernate validator documentation (http://docs.jboss.org/hibernate/validator/4.2/reference/en-US/html_single/#validator-customconstraints-errormessage)

I am sucessfull on creating own constraint. But when i try to give custom error message for my own custom constraint, it is not accepting. Here is the code.
@CheckCase(CaseMode.UPPER, message = "First name must be upper case")

What is the problem ?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

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.