question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add Java Record support

See original GitHub issue

There 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.

  1. Map the query result to a record.
  2. Always create a new copied record to accept the user data and update the table.
  3. Support @PersistentConstructor for custom constructors.
  4. Support all Spring data commons annotations on record classes.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
hantsycommented, Feb 2, 2022

Sorry, it is my mistake, I means Spring Data Jdbc in the above comments, I will create an example and verify it soon.

0reactions
schaudercommented, Feb 3, 2022
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found