-
Notifications
You must be signed in to change notification settings - Fork 173
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
Fix for issue 2211 #2289
base: master
Are you sure you want to change the base?
Fix for issue 2211 #2289
Conversation
Sorry this fix can't be accepted as tests |
62f6e1d
to
1c8cdbf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm missing there tests. See mainly JUnitJPQLFunctionsTest.java
or with this
alias generation JUnitJPQLJakartaDataNoAliasTest.java
Hi @rfelcman |
Hi @rfelcman I went through the mail. Is @IdClass is not supported in EclipseLink? |
Of course |
Hi @rfelcman I have send an mail can you please check it out ? |
Hi @rfelcman To handle this scenario, I attempted to add logic to check if the entity is using @IdClass. Below is an example of the extra else if block I added:
However, I’m unsure of the specific logic that needs to go inside the if block to correctly process an entity with @IdClass. |
I think, that MetadataDescriptor.java is too generic. Try Line 605 in 2dd631c
And another area where fix should be targeted is org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.EmbeddedIdAccessor or org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.DerivedIdClassAccessor
|
This PR contains a fix for issue #2211. The query now correctly includes all primary keys instead of just one.