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
Investigate support for JDK 14 record types in object mapping [DATACMNS-1636] #2062
Comments
Hello, what's the state of this? I just tried to use a
using this class (
|
Records are supported since quite a while and persistence constructor detection works as with other classes. For some reason, the entity instantiator tries to use a no-arg constructor |
ok, I have an additional ctor in there which I omitted above, when annotating the compact ctor it works:
|
I can't find a note in spring-data-commons reference about records. Would you please point me to documentation where it is mentioned? |
Records are classes with a specific naming scheme after all and those work out of the box. However, we do recommend using records for DTO's as they are not a good fit as entities. We should use this ticket to document the recommendation. |
Oliver Drotbohm opened DATACMNS-1636 and commented
No further details from DATACMNS-1636
The text was updated successfully, but these errors were encountered: