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

Support @IdClass and multiple @Id #2871

Merged
merged 4 commits into from
Apr 9, 2024
Merged

Support @IdClass and multiple @Id #2871

merged 4 commits into from
Apr 9, 2024

Conversation

dstepanov
Copy link
Contributor

No description provided.

*/
@NonNull
default List<PersistentProperty> getIdentityProperties() {
if (getIdentity() != null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should look at getCompositeIdentity() ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will try to add it an see if it's going to work

Copy link
Contributor

Choose a reason for hiding this comment

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

I guess check if getCompositeIdentity is not empty then return it, else list with getIdentity or else empty list
To have same logic as implementing classes I guess.

@@ -0,0 +1,24 @@
/*
* Copyright 2017-2020 original authors
Copy link
Contributor

Choose a reason for hiding this comment

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

Not really important, but maybe we should just remove copyright from test classes? If not then update from 2020 to the current year.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Probably, I just copied :/

Copy link

sonarqubecloud bot commented Apr 9, 2024

@dstepanov dstepanov merged commit 3ac9d2d into 4.7.x Apr 9, 2024
43 checks passed
@dstepanov dstepanov deleted the idclass branch April 9, 2024 12:40
dstepanov added a commit that referenced this pull request Apr 15, 2024
dstepanov added a commit that referenced this pull request Apr 17, 2024
* Revert "Support system/pseudo column as version field (ORA_ROWSCN) (#2873)"

This reverts commit 5c49c0d.

* Revert "Support `@IdClass` and multiple `@Id` (#2871)"

This reverts commit 3ac9d2d.
@graemerocher graemerocher added the type: enhancement New feature or request label May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants