Skip to content

Commit

Permalink
Test fix for sql generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Pelayori committed Mar 4, 2024
1 parent 798f516 commit 1bca9e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/uniovi/entities/Player.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class Player implements JsonEntity {
@OneToMany(mappedBy = "player", cascade = CascadeType.REMOVE)
private Set<GameSession> gameSessions = new HashSet<>();

@OneToOne(cascade = CascadeType.ALL)
@OneToOne(cascade = CascadeType.ALL, mappedBy = "player")
private ApiKey apiKey;

// Transient: no se almacena en la base de datos
Expand Down

0 comments on commit 1bca9e5

Please sign in to comment.