Skip to content

Commit a24844b

Browse files
Merge pull request #14 from GabrielTorelo/feat/gameListDTOs
feat/gameListDTOs#001 - OK
2 parents c4473ad + 196bda5 commit a24844b

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)