[hibernate-issues] [JIRA] (HHH-10956) Persisting partially-generated composite Ids fails with HibernateException: No part of a composite identifier may be null

IT Support (JIRA) jira at hibernate.atlassian.net
Wed Apr 22 14:26:56 EDT 2020


IT Support ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A7c7fc415-3805-43c8-9dfa-7cbe1117db94 ) *commented* on HHH-10956 ( https://hibernate.atlassian.net/browse/HHH-10956?atlOrigin=eyJpIjoiYzY4Nzg0MWIxM2JhNGEyYmE4NmI4OTRiYzVmYTA3MDYiLCJwIjoiaiJ9 )

Re: Persisting partially-generated composite Ids fails with HibernateException: No part of a composite identifier may be null ( https://hibernate.atlassian.net/browse/HHH-10956?atlOrigin=eyJpIjoiYzY4Nzg0MWIxM2JhNGEyYmE4NmI4OTRiYzVmYTA3MDYiLCJwIjoiaiJ9 )

Tracked this down, it was caused by HHH-4848 ( https://hibernate.atlassian.net/browse/HHH-4848 ) Closed on Wed Feb 3 06:58:46 2010 +0000
see: https://hibernate.atlassian.net/browse/HHH-4848

The check used to skip null values with a continue, but was changed to throw an exception. As such HHH-10956 ( https://hibernate.atlassian.net/browse/HHH-10956 ) Open is a regression caused by HHH-4848 ( https://hibernate.atlassian.net/browse/HHH-4848 ) Closed

This is the (relevant) commit log for the offending file

> 
> 
> 
> commit 3906816ee2625987796feb587ca374a55c3374ae (
> https://github.com/hibernate/hibernate-orm/commit/3906816ee2625987796feb587ca374a55c3374ae
> )
> Author: Steve Ebersole steve at hibernate.org
> Date: Mon Dec 19 16:35:48 2016 -0600
> 
> 
> 
> HHH-11274 ( https://hibernate.atlassian.net/browse/HHH-11274 ) -
> EntityManagerFactoryImpl.getIdentifier uses deprecated version of
> getIdentifier
> 
> 

> 
> 
> 
> commit 87e3f0fd28d7229b0a35032292ff32f542c22010 (
> https://github.com/hibernate/hibernate-orm/commit/87e3f0fd28d7229b0a35032292ff32f542c22010
> )
> Author: Steve Ebersole steve at hibernate.org
> Date: Tue Apr 19 13:14:02 2016 -0500
> 
> 
> 
> HHH-10664 ( https://hibernate.atlassian.net/browse/HHH-10664 ) - Prep 6.0
> feature branch - merge hibernate-entitymanager into hibernate-core (first
> sucessful full compile of consolidated hibernate-core)
> 
> 

> 
> 
> 
> commit 611f8a0e1c3764dc4505a32294ff0fbeaa8d2e6b (
> https://github.com/hibernate/hibernate-orm/commit/611f8a0e1c3764dc4505a32294ff0fbeaa8d2e6b
> )
> Author: Steve Ebersole steve at hibernate.org
> Date: Mon May 18 13:35:26 2015 -0500
> 
> 
> 
> HHH-9803 ( https://hibernate.atlassian.net/browse/HHH-9803 ) - Checkstyle
> fix ups
> 
> 

> 
> 
> 
> commit 8fe5460ec03942e974d4aae7d9060e20bab7f990 (
> https://github.com/hibernate/hibernate-orm/commit/8fe5460ec03942e974d4aae7d9060e20bab7f990
> )
> Author: Steve Ebersole steve at hibernate.org
> Date: Sun Nov 24 20:07:37 2013 -0600
> 
> 
> 
> HHH-8741 ( https://hibernate.atlassian.net/browse/HHH-8741 ) - More
> checkstyle cleanups
> 
> 

> 
> 
> 
> commit 19791a6c7d17f6f5d74dd9b42bdb4fcb7f5a9be1 (
> https://github.com/hibernate/hibernate-orm/commit/19791a6c7d17f6f5d74dd9b42bdb4fcb7f5a9be1
> )
> Author: Steve Ebersole steve at hibernate.org
> Date: Fri Mar 18 15:51:43 2011 -0500
> 
> 
> 
> HHH-6026 ( https://hibernate.atlassian.net/browse/HHH-6026 ) - Migrate
> bytecode provider integrations to api/spi/internal split
> 
> 

> 
> 
> 
> commit 839e23458aa0c50e1dc0d8f1a1bed87dbff49f3b (
> https://github.com/hibernate/hibernate-orm/commit/839e23458aa0c50e1dc0d8f1a1bed87dbff49f3b
> )
> Author: Steve Ebersole steve at hibernate.org
> Date: Mon Feb 8 19:27:00 2010 +0000
> 
> 
> 
> HHH-4704 ( https://hibernate.atlassian.net/browse/HHH-4704 ) - Pass session
> into EntityTuplizer#setIdentifier
> 
> 
> 
> git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18733 1b8cb986-b30d-0410-93ca-fae66ebed9b2
> 
> 
> 

> 
> 
> 
> commit 53b1890c1b2b43a8dc89f0f09d6d3b6b6f3cbdc1 (
> https://github.com/hibernate/hibernate-orm/commit/53b1890c1b2b43a8dc89f0f09d6d3b6b6f3cbdc1
> )
> Author: Steve Ebersole steve at hibernate.org
> Date: Fri Feb 5 02:42:55 2010 +0000
> 
> 
> 
> HHH-4848 ( https://hibernate.atlassian.net/browse/HHH-4848 ) - Derived
> identities: Derived entities using @IdClass and mapping a @XToOne are not
> supported
> 
> 
> 
> git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18698 1b8cb986-b30d-0410-93ca-fae66ebed9b2
> 
> 
> 

( https://hibernate.atlassian.net/browse/HHH-10956#add-comment?atlOrigin=eyJpIjoiYzY4Nzg0MWIxM2JhNGEyYmE4NmI4OTRiYzVmYTA3MDYiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-10956#add-comment?atlOrigin=eyJpIjoiYzY4Nzg0MWIxM2JhNGEyYmE4NmI4OTRiYzVmYTA3MDYiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100125- sha1:0a83519 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200422/364b78fb/attachment.html 


More information about the hibernate-issues mailing list