fix(module-web,module-ejb): add user count to boardGameShortDto
This commit is contained in:
parent
1fb7b29d55
commit
44e6ff895b
@ -15,7 +15,7 @@ public class BoardGameShortDto {
|
||||
|
||||
private Long id;
|
||||
private String name;
|
||||
|
||||
private int ownerCount;
|
||||
|
||||
public BoardGameShortDto() {
|
||||
|
||||
@ -24,6 +24,7 @@ public class BoardGameShortDto {
|
||||
public BoardGameShortDto(BoardGameEntity aBoardGame) {
|
||||
id = aBoardGame.getId();
|
||||
name = aBoardGame.getName();
|
||||
ownerCount = aBoardGame.getUsers().size();
|
||||
}
|
||||
|
||||
public Long getId() {
|
||||
@ -42,4 +43,12 @@ public class BoardGameShortDto {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public int getOwnerCount() {
|
||||
return ownerCount;
|
||||
}
|
||||
|
||||
public void setOwnerCount(int ownerCount) {
|
||||
this.ownerCount = ownerCount;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user