[hibernate-dev] HHH-7237
Steve Ebersole
steve at hibernate.org
Tue Apr 24 11:19:42 EDT 2012
Thanks for that Gunther. Saw that this morning but had to run out to a
doctors appointment. Just getting ready to work on it.
On Tue 24 Apr 2012 07:15:50 AM CDT, Demetz, Guenther wrote:
> Hi Steve,
>
> thank you for fixing HHH-7237 (Inline natural-id synchronization
> doesn't consider reattached objects).
>
> Unfortunately only now, with a fresh checkout, I saw that the fix
> makes
> org.hibernate.test.naturalid.immutable.ImmutableEntityNaturalIdTest.testNaturalIdCheck
> fail.
>
> Sorry for that.
>
> A solution which turns all involved test-cases to green,
>
> could be to add following condition in method
> AbstractEntityPersister#afterReassociate
>
> *<< if*( hasNaturalIdentifier()) {
>
> *>> if*( hasNaturalIdentifier() &&
> !getEntityMetamodel().hasImmutableNaturalId() ) { // relevant only for
> mutable NaturalId’s
>
> best regards
>
> Günther
>
--
steve at hibernate.org
http://hibernate.org
More information about the hibernate-dev
mailing list