r/java • • Jan 16 '20

Records Come to Java

https://blogs.oracle.com/javamagazine/records-come-to-java
204 Upvotes

93 comments sorted by

View all comments

19

u/daniu Jan 16 '20

So... record field accessors don't follow the getX() standard that many ubiquitous libraries and tools rely on (Spring and Jackson come to mind)? Nobody started using Java 11 until it was supported by those, I can't see the use of records being any different.

3

u/duheee Jan 16 '20

Nobody started using Java 11 until it was supported by those,

You can still use records for your own algorithms. As far as I can see (from other people's posts) they're unusable as JPA entities so their use will be most definitely in other places. Maybe as DTOs between data systems or something. Protobuf may be able to use them.