Skip to content

Updated to spring 3.3.4 the same problem #3158

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
RamsesGomez opened this issue Sep 20, 2024 · 7 comments
Closed

Updated to spring 3.3.4 the same problem #3158

RamsesGomez opened this issue Sep 20, 2024 · 7 comments
Labels
status: duplicate A duplicate of another issue

Comments

@RamsesGomez
Copy link

RamsesGomez commented Sep 20, 2024

I just updated to spring 3.3.4 and I'm still having the exact same problem. Am I missing something?

related to #3146

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Sep 20, 2024
@RamsesGomez
Copy link
Author

projections 2.zip

@mp911de
Copy link
Member

mp911de commented Sep 20, 2024

This is correct and expected. Your entity doesn't define an id property. The name of the Kotlin property is _id. The fact that you're returning _id in getId() is your choice and we cannot specialize to an accessor that doesn't match the property description.

@RamsesGomez
Copy link
Author

Well it worked before somehow the update broke it

@RamsesGomez
Copy link
Author

how you can give me some suggestion how to handle this correctly, this is a ver common pattern in koltin to hide internals.

@mp911de
Copy link
Member

mp911de commented Sep 23, 2024

how you can give me some suggestion how to handle this correctly, this is a ver common pattern in koltin to hide internals.

When creating entities, the purpose is to interchange data. Deviating property names from how they are exposed adds to complexity and breaks conventions such as in this case.

@mp911de mp911de closed this as not planned Won't fix, can't repro, duplicate, stale Sep 23, 2024
@mp911de mp911de added status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged labels Sep 23, 2024
@RamsesGomez
Copy link
Author

So why this is broken with the new update I don't understand. What has changed?

@RamsesGomez
Copy link
Author

I thought entities have to comply with getter/setters in java and there is a getId getter for the Id so I do not understand what the problem is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

3 participants