Skip to content

Commit 082f78d

Browse files
committed
Avoid Entity In Dto Via Constructor Expression (no association)
1 parent 4cf0612 commit 082f78d

File tree

1 file changed

+4
-1
lines changed
  • HibernateSpringBootAvoidEntityInDtoViaConstructor/src/main/java/com/bookstore/dto

1 file changed

+4
-1
lines changed

HibernateSpringBootAvoidEntityInDtoViaConstructor/src/main/java/com/bookstore/dto/BookstoreDto.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
package com.bookstore.dto;
22

33
import com.bookstore.entity.Author;
4+
import java.io.Serializable;
45

5-
public class BookstoreDto {
6+
public class BookstoreDto implements Serializable {
7+
8+
private static final long serialVersionUID = 1L;
69

710
private final Author author;
811
private final String title;

0 commit comments

Comments
 (0)