Skip to content

Commit ad66d94

Browse files
committed
Dto Via JDK14 Records and ResultTransformer
1 parent 002978d commit ad66d94

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

HibernateSpringBootDtoRecordResultTransformer/src/main/java/com/bookstore/service/BookstoreService.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,7 @@
66
import org.springframework.stereotype.Service;
77

88
@Service
9-
public class BookstoreService {
10-
11-
private final Dao dao;
12-
13-
public BookstoreService(Dao dao) {
14-
this.dao = dao;
15-
}
9+
public record BookstoreService(Dao dao) {
1610

1711
public List<AuthorDto> fetchAuthorWithBook() {
1812

0 commit comments

Comments
 (0)