-->
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-vvalidator fails to validate groups in OSGI Env
PostPosted: Fri Dec 01, 2017 7:20 am 
Newbie

Joined: Fri Dec 01, 2017 6:55 am
Posts: 1
I am using hibernate-validator-5.2.4.Final.jar along with javax.Validation, it works fine if i dont mention the groups for a field in the bean to be validated.
@NotNull(message = "name required")
private String name;

but after mentioning the groups i am unable to validate any of the field .For example
@NotNull(message = "name required", groups = {MyJobGroup.class })
private String name;

The above behaviour is seen in OSGI environment(Karaf) , works well in standalone systems.
Kindly help.


Top
 Profile  
 
 Post subject: Re: hibernate-vvalidator fails to validate groups in OSGI Env
PostPosted: Sat Dec 02, 2017 6:59 pm 
Hibernate Team
Hibernate Team

Joined: Sat Jan 24, 2009 12:46 pm
Posts: 388
What exactly DYM by "I'm unable to validate any of the field"? Do you get an exception of any kind? Or are you not seeing a constraint violation you're excepting?

In case of the latter, could you file an issue in our tracker (https://hibernate.atlassian.net/projects/HV/summary)? The best would be to adapt our OSGi integration tests (https://github.com/hibernate/hibernate- ... rationtest) which are also based on Karaf.

Thanks,

--Gunnar

_________________
Visit my blog at http://musingsofaprogrammingaddict.blogspot.com/


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.