-->
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.  [ 1 post ] 
Author Message
 Post subject: Question: How to validate individual values of a Map
PostPosted: Thu Oct 01, 2015 12:13 pm 
Newbie

Joined: Thu Oct 01, 2015 12:07 pm
Posts: 2
I have map with key being of String type and value of Object type (Map<String, Object>). I want to be able to validate the value of the object given based on what key is provided. For example:

If I have a map:

{ "foo" : Object}

I need the value of a key foo in this map to be of Integer type. Can I do this using hibernate validator? if so how would I be able to do this?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 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.