---
title: "Comment by WD on \"Spring Boot and Java 16 Records\" | Hashnode"
description: "One of the features I like about Scala is the one line entity declaration. I&#39;m working on a project with Java and I miss the one line declaration. Sure, I c"
url: "https://hashnode.com/posts/spring-boot-and-java-16-records/6053d1308899a615727e64c1/comment/6075b72785f3a21e3926d28f"
---

[Discussion](https://hashnode.com/posts/spring-boot-and-java-16-records/6053d1308899a615727e64c1)

Comment [Spring Boot and Java 16 Records](https://hashnode.com/posts/spring-boot-and-java-16-records/6053d1308899a615727e64c1)

[WD](https://hashnode.com/@WD)

[Apr 13, 2021](https://hashnode.com/posts/spring-boot-and-java-16-records/6053d1308899a615727e64c1/comment/6075b72785f3a21e3926d28f)

One of the features I like about Scala is the one line entity declaration. I'm working on a project with Java and I miss the one line declaration. Sure, I can use Intellij to generate boilerplate code but I personally do not feel it the same.

With regards to your code, is there any reason you prefer straight sql statements than using a ORM? Hibernate maybe?. I know performance would be one but I'm interested to know in alternatives.

Would you recommend java 16 for a project that would take 3 years to develop given that by that time code most likely be fully supported.

Good post btw.

Thanks.
