We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c4473ad + 196bda5 commit a24844bCopy full SHA for a24844b
1 file changed
src/main/java/com/gabriel_torelo/game_list/dto/GameListDTO.java
@@ -0,0 +1,32 @@
1
+package com.gabriel_torelo.game_list.dto;
2
+
3
+import org.springframework.beans.BeanUtils;
4
+import com.gabriel_torelo.game_list.entities.GameList;
5
6
+public class GameListDTO {
7
+ private Long id;
8
+ private String name;
9
10
+ public GameListDTO() {
11
+ }
12
13
+ public GameListDTO(GameList entity) {
14
+ BeanUtils.copyProperties(entity, this);
15
16
17
+ public Long getId() {
18
+ return id;
19
20
21
+ public void setId(Long id) {
22
+ this.id = id;
23
24
25
+ public String getName() {
26
+ return name;
27
28
29
+ public void setName(String name) {
30
+ this.name = name;
31
32
+}
0 commit comments