You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: HibernateSpringBootDtoRecordJbcTemplate/README.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,15 @@
1
-
**[DTO Via JDK14 RecordsAnd Spring Data Query Builder Mechanism](https://github.com/AnghelLeonard/Hibernate-SpringBoot/tree/master/HibernateSpringBootDtoRecordConstructor)**
1
+
**[DTO Via JDK14 Records, `JdbcTemplate`And `ResultSetExtractor`](https://github.com/AnghelLeonard/Hibernate-SpringBoot/tree/master/HibernateSpringBootDtoRecordJbcTemplate)**
2
2
3
-
**Description:** Fetching more data than needed is prone to performance penalities. Using DTO allows us to extract only the needed data. In this application we rely on JDK14 Records featureand Spring Data Query Builder Mechanism.
3
+
**Description:** Fetching more data than needed is prone to performance penalities. Using DTO allows us to extract only the needed data. In this application we rely on JDK14 Records feature, `JdbcTemplate`and `ResultSetExtractor`.
4
4
5
5
From Openjdk JEP359:
6
6
7
7
*Records provide a compact syntax for declaring classes which are transparent holders for shallowly immutable data.*
8
8
9
9
**Key points:**
10
-
Define the `AuthorDto` as:
11
10
12
-
`public record AuthorDto(String name, int age) implements Serializable {}`
11
+
- define the Java Records as `AuthorDto` and `BookDto`
275.**[DTO Via JDK14 Records, `JdbcTemplate` And `ResultSetExtractor`](https://github.com/AnghelLeonard/Hibernate-SpringBoot/tree/master/HibernateSpringBootDtoRecordJbcTemplate)**
4040
+
4041
+
**Description:** Fetching more data than needed is prone to performance penalities. Using DTO allows us to extract only the needed data. In this application we rely on JDK14 Records feature, `JdbcTemplate` and `ResultSetExtractor`.
4042
+
4043
+
From Openjdk JEP359:
4044
+
4045
+
*Records provide a compact syntax for declaring classes which are transparent holders for shallowly immutable data.*
4046
+
4047
+
**Key points:**
4048
+
4049
+
- define the Java Records as `AuthorDto` and `BookDto`
0 commit comments