-
Notifications
You must be signed in to change notification settings - Fork 198
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
Conversation
*/ | ||
@NonNull | ||
default List<PersistentProperty> getIdentityProperties() { | ||
if (getIdentity() != null) { |
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.
Should look at getCompositeIdentity()
?
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 will try to add it an see if it's going to work
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 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.
data-model/src/main/java/io/micronaut/data/model/runtime/RuntimePersistentEntity.java
Show resolved
Hide resolved
@@ -0,0 +1,24 @@ | |||
/* | |||
* Copyright 2017-2020 original authors |
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.
Not really important, but maybe we should just remove copyright from test classes? If not then update from 2020 to the current year.
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.
Probably, I just copied :/
Quality Gate passedIssues Measures |
This reverts commit 3ac9d2d.
No description provided.