Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HHH-18384 @JoinColumnsOrFormulas broken #9273

Merged
merged 4 commits into from
Dec 4, 2024
Merged

Conversation

cigaly
Copy link
Contributor

@cigaly cigaly commented Nov 17, 2024

See Jira issue HHH-18384

In org.hibernate.boot.model.internal.PropertyBinder#addPropertyelement annotated with @Id should be added before not annotated elements, but after previously added annotated elements

Additionally, preserving hierarchy order.


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.


Copy link
Member

@mbladel mbladel left a comment

Choose a reason for hiding this comment

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

Thanks @cigaly! This change looks reasonable to me, just left a couple nitpicks and a comment - if you could please check it would be great.

@gavinking
Copy link
Member

Unless I'm misunderstanding the test for this is using .hbm.xml, but the issue also affects annotations.

Should we add a test that uses annotations?

@cigaly
Copy link
Contributor Author

cigaly commented Nov 22, 2024

It seems that already existing test using annotations:

	@Test
	@DomainModel( annotatedClasses = {Address.class, Contact.class} )
	void testAnnotations(DomainModelScope domainModelScope) {
		verifyMapping( domainModelScope );
	}

Copy link
Member

@mbladel mbladel left a comment

Choose a reason for hiding this comment

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

LGTM, but let's hear from @sebersole who created the Jira since he assigned it to himself before merging.

@gavinking
Copy link
Member

It seems that already existing test using annotations

OK, so I was misunderstanding. Thanks.

@gavinking
Copy link
Member

What's the hold-up on this one? Can we just merge it?

@mbladel
Copy link
Member

mbladel commented Dec 4, 2024

Was waiting to hear from @sebersole since he had the issue assigned before this PR was created.

@gavinking
Copy link
Member

OK but that was two weeks ago. So can we just go ahead?

@mbladel mbladel merged commit 5cc79fb into hibernate:main Dec 4, 2024
22 of 23 checks passed
@mbladel
Copy link
Member

mbladel commented Dec 4, 2024

Done, I'll also backport it to 6.6. Thanks @cigaly!

@gavinking
Copy link
Member

Perfect thank you!!

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.

3 participants