Currently, there is no way to load an entity that exists in the database
with a composite ID, if one of the composite ID columns is null.
This behavior is due to this code in ComponentType#hydrate:
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/main/java/org/hibernate/ty
I've created https://hibernate.atlassian.net/browse/HHH-13776.
Thanks!
Gail
On Tue, Dec 10, 2019 at 1:30 PM Steve Ebersole wrote:
> Actually I was thinking of @EmbeddedId, but you were asking about @IdClass.
>
> I think (2) sounds more natural.
>
>
> On Tue, Dec 10, 2019 at 3:12 PM Steve Ebers
Actually I was thinking of @EmbeddedId, but you were asking about @IdClass.
I think (2) sounds more natural.
On Tue, Dec 10, 2019 at 3:12 PM Steve Ebersole wrote:
> To me this is perfectly consistent with how inheritance works in entity
> hierarchies. Unless a super type is marked with @Entit
To me this is perfectly consistent with how inheritance works in entity
hierarchies. Unless a super type is marked with @Entity
or @MappedSuperclass, the "attributes" defined on that specific class are
not picked up.
Maybe I'm misunderstanding you?
On Mon, Dec 9, 2019 at 1:58 PM Gail Badner wro