Skip to content

Conversation

@dreab8
Copy link
Member

@dreab8 dreab8 commented Jul 11, 2025

https://hibernate.atlassian.net/browse/HHH-19585


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.


@hibernate-github-bot
Copy link

hibernate-github-bot bot commented Jul 11, 2025

Thanks for your pull request!

This pull request appears to follow the contribution rules.

› This message was automatically generated.

@dreab8 dreab8 changed the title Hhh 19585 Object relationship mapping issues | java.lang.NullPointerException: Cannot invoke "java.lang.Comparable.compareTo(Object)" because "one" is null HHH-19585 Object relationship mapping issues | java.lang.NullPointerException: Cannot invoke "java.lang.Comparable.compareTo(Object)" because "one" is null Jul 11, 2025
…xception: Cannot invoke java.lang.Comparable.compareTo(Object) because 'one' is null
final InitializerData subData = parent.getData( data.getRowProcessingState() );
parent.resolveInstance( subData );
data.setInstance( parent.getResolvedInstance( subData ) );
data.setInstance( parent.getResolvedInstanceNoProxy( subData ) );
Copy link
Member

@beikov beikov Jul 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this not work?

Suggested change
data.setInstance( parent.getResolvedInstanceNoProxy( subData ) );
data.setInstance( ( (EntityInitializer< InitializerData>) parent ).getTargetInstance( subData ) );

@dreab8
Copy link
Member Author

dreab8 commented Jul 14, 2025

superseded by #10529

@dreab8 dreab8 closed this Jul 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants