Skip to content

Modifications of Author_ calls to the one-to-one relationship. #9875

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

Closed
wants to merge 1 commit into from

Conversation

ArthurL4
Copy link

[Please describe here what your change is about]
The documentation relates on the one-to-one association with the example of "Author" and "Person".
The non-owned side may be mapped for a bidirectionnal relationship with the attribute "mappedBy=Author_.Person" on the @one-to-one,
but this property does not exist in Author. It contains Author.author and the documentation indicates Author_.PERSON which is actually the type of the attribute author in Author.


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.


…hip exeample. Metamodelgen creates final static constant on the property's name, not with property's type from the Author entity private Person author is used is Author entity.
@hibernate-github-bot
Copy link

Thanks for your pull request!

This pull request does not follow the contribution rules. Could you have a look?

❌ All commit messages should start with a JIRA issue key matching pattern HHH-\d+
    ↳ Offending commits: [072bdab]

› This message was automatically generated.

@gavinking
Copy link
Member

Thanks! You're perfectly correct that there's a mistake, but actually what I meant to write can be seen in #9876.

@gavinking gavinking closed this Mar 18, 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