Add Java Record support
See original GitHub issueThere is an immutables
example in the Spring Data Examples, but it used interface and Lombok generated immutable classes.
I think the record is a better alternative for the immutable cases.
- Map the query result to a record.
- Always create a new copied record to accept the user data and update the table.
- Support @PersistentConstructor for custom constructors.
- Support all Spring data commons annotations on record classes.
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
4 Records - Java - Oracle Help Center
JDK 14 introduces records, which are a new kind of type declaration. Like an enum, a record is a restricted form of a...
Read more >Java 14 Record Keyword - Baeldung
Explore the fundamentals of records, including their purpose, generated methods, and customization techniques.
Read more >Java Record - Jenkov.com
A Java Record is an special type of class with a concise syntax for defining immutable record classes - usually used to contain...
Read more >Java 14 Records Class | DigitalOcean
Java 14 introduced a new way to create classes called Records. ... Both Eclipse and IntelliJ already provide support for Java 14, ...
Read more >How to use Record in Java? Example - Java67
1. Java record type definition is final · 2. You can have multiple constructors for Java Record. · 3. Java Records also can...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Sorry, it is my mistake, I means Spring Data Jdbc in the above comments, I will create an example and verify it soon.
The sample project I used: https://github.com/schauder/stackoverflow/tree/main/jdbc/createdAtWithRecords