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 8a23638 commit 9b1782b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/main/java/com/uniovi/entities/ApiKey.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
@Getter
@Setter
@NoArgsConstructor
@Table(name = "api_key")
public class ApiKey {
@Id
@GeneratedValue
Expand Down
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, mappedBy = "user")
@OneToOne(cascade = CascadeType.PERSIST, mappedBy = "user")
private ApiKey apiKey;

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

0 comments on commit 9b1782b

Please sign in to comment.