Skip to content

Java 16's records support - field access methods and constructors #1100

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
hajdamak opened this issue Nov 25, 2021 · 4 comments
Closed

Java 16's records support - field access methods and constructors #1100

hajdamak opened this issue Nov 25, 2021 · 4 comments

Comments

@hajdamak
Copy link

When saving Java 16's record in repository field access methods do not seem to be accessed. Is this caused by lack of support for default record's field access methods (and Spring Data JDBC accesses fields directly) or intentional behavior?
What is more strange is that record's default constructor is not called once during save but twice. Is there a reason for that.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Nov 25, 2021
@schauder
Copy link
Contributor

Could you make that two separate tickets? One for the double constructor call and one for the lack of access method support?

Also, please provide a Minimimal Reproducable Example, preferable as a Github repository. Make sure to include the database, either as an in memory database or if that is not possible using Testcontainers.

@mp911de mp911de added the status: waiting-for-feedback We need additional information before we can continue label Nov 29, 2021
@spring-projects-issues
Copy link

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

@spring-projects-issues spring-projects-issues added the status: feedback-reminder We've sent a reminder that we need additional information before we can continue label Dec 6, 2021
@spring-projects-issues
Copy link

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.

@spring-projects-issues spring-projects-issues removed status: waiting-for-feedback We need additional information before we can continue status: feedback-reminder We've sent a reminder that we need additional information before we can continue status: waiting-for-triage An issue we've not yet triaged labels Dec 13, 2021
@hajdamak
Copy link
Author

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

No branches or pull requests

4 participants