Skip to content

Commit

Permalink
Add new member to player to match GameSession new entity
Browse files Browse the repository at this point in the history
  • Loading branch information
Pelayori committed Mar 2, 2024
1 parent 4f3c733 commit 48a43e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/com/uniovi/entities/Player.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ public class Player {
inverseJoinColumns={@JoinColumn(name="ROLE_ID", referencedColumnName="NAME")})
private Set<Role> roles = new HashSet<>();

@OneToMany(mappedBy = "player")
private Set<GameSession> gameSessions = new HashSet<>();

// Transient: no se almacena en la base de datos
@Transient
private String passwordConfirm;
Expand Down

0 comments on commit 48a43e6

Please sign in to comment.