Skip to content

Conversation

@leonschenk
Copy link
Contributor

@leonschenk leonschenk commented Sep 30, 2024

Hibernate should not map synthetic properties. However by copying the synthetic property the synthetic aspect is not copied. To circumvent this create a SyntheticProperty on copying. And ignore the property in the jpa-model.


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.


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

@hibernate-github-bot
Copy link

hibernate-github-bot bot commented Sep 30, 2024

Thanks for your pull request!

This pull request appears to follow the contribution rules.

› This message was automatically generated.

@leonschenk leonschenk changed the title Bugfix/hhh-18675 Fix for hhh-18675. Ignore generic, synthetic property in JPA-model Sep 30, 2024
@leonschenk leonschenk changed the title Fix for hhh-18675. Ignore generic, synthetic property in JPA-model HHH-18675. Ignore generic, synthetic property in JPA-model Sep 30, 2024
Copy link
Member

@beikov beikov left a comment

Choose a reason for hiding this comment

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

The change looks good mostly, but please respect our code style.

@leonschenk
Copy link
Contributor Author

@beikov Thank you, I have changed your suggestions.
Is it possible to backport? Shall I then make another pull-request?

@beikov
Copy link
Member

beikov commented Oct 2, 2024

Yeah, please create a PR against the 6.6 branch. Please note that our license headers are slightly different on that branch though.

@beikov beikov merged commit 0a1a9f7 into hibernate:main Oct 2, 2024
21 of 22 checks passed
@leonschenk leonschenk deleted the bugfix/HHH-18675 branch November 14, 2024 21:30
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