-->
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: Hibernate validator and lazy collections
PostPosted: Tue Jun 03, 2008 10:00 pm 
Newbie

Joined: Sun Jan 28, 2007 10:37 pm
Posts: 4
Location: Wollongong
I came across an interesting problem recently and could not find any information about it in the docs.

Basically I had an @AssertTrue validation method that was causing a lazy collection to become initialized , which then resulted in a "collection [my.object.collection] was not processed by flush" assertion failure. I could not find anything about this in the docs and I am not sure if this is expected behavior, or if there is something else going on in my application.

I could not find any documentation on this topic, if this is expected behavior I think it would be a good idea to include it in the reference documentation for hibernate validator, because it results in hard to find bugs.

Stuart


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 04, 2008 4:44 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Quote:
...was causing a lazy collection to become initialized , which then resulted in a "collection [my.object.collection] was not processed by flush" assertion failure.

It look like this is solved since Hibernate 3.2.1 :
http://opensource.atlassian.com/projects/hibernate/browse/HHH-1663
which Hibernate version are you using?

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 04, 2008 6:01 pm 
Newbie

Joined: Sun Jan 28, 2007 10:37 pm
Posts: 4
Location: Wollongong
I think this is a different issue, and I tried it with two different versions (the current stable and CR releases). In hindsight I really should have posted it in the hibernate validator forum, I will post it there.


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:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.