[hibernate-dev] Possible to confirm that versioning is broken forPersistentSets?

Steve Ebersole steve.ebersole at jboss.com
Wed Sep 13 09:26:26 EDT 2006


Without having had a chance yet to look, what exactly are the proposed
changes in regards to lists and bags?

As for the code snippet and question, you'd need to find out why the
collection is considered dirty on merge...

-----Original Message-----
From: Josh Moore [mailto:josh.moore at gmx.de] 
Sent: Wednesday, September 13, 2006 3:38 AM
To: Steve Ebersole
Cc: hibernate-dev at lists.jboss.org
Subject: Re: [hibernate-dev] Possible to confirm that versioning is
broken forPersistentSets?

Got the fixes in r10470. Thanks. I updated HHH-1668 -- PList and PBag 
still have issues (failing tests). I can add a patch if you don't have 
it local, Steve. The failing tests I had for PMap have apparently been 
fixed.

I'm also having problems again with HHH-1401. Added a test (see link 
below), but basically it comes down to this:

	// ... test prelude
	Parent p = new Parent();
	Child c = new Child();
	p.getChildren().add( c );
	c.setParent( p );
	s.save( p );
	// ... test postlude

	// ... new session
	Parent p2 = s.merge( p );
	// ... test postlude

	assertTrue( p.getVersion().equals( p2.getVersion() );
	// BOOM

Is this the expected behavior that merging a collection will _always_ 
cause a version update??

--[links]--
http://opensource.atlassian.com/projects/hibernate/browse/HHH-1668
http://opensource.atlassian.com/projects/hibernate/browse/HHH-1401
http://opensource.atlassian.com/projects/hibernate/secure/attachment/126
86/HHH1401Test.java




More information about the hibernate-dev mailing list