-->
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.  [ 3 posts ] 
Author Message
 Post subject: Using @Valid On Collections
PostPosted: Wed Jan 04, 2006 10:32 am 
Newbie

Joined: Thu Dec 01, 2005 12:23 pm
Posts: 19
Hi there experts,

I'm wondering if the @Valid annotation also should work on collection attributes like sets and lists?

I'd expect the following annotation

Code:
@Valid
private Set<Customer> customers;


to execute something like

Code:
for (Customer customer : customers) {
   new ClassValidator<Customer>(Customer.class).getInvalidValues(customer);
   }
}


when the class containing the collection is being validated. Unfortunately this seems not to happen. Or has anybody got this runnig?

- bitbyter


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 04, 2006 10:51 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Makes sense.
Open a JIRA issue, even better provide a patch.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 05, 2006 4:38 am 
Newbie

Joined: Thu Dec 01, 2005 12:23 pm
Posts: 19
Create Jira entry... http://opensource2.atlassian.com/projects/hibernate/browse/ANN-208

If I should have 1-2 hours I'll try to supply a patch.

- bitbyter


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.