Update LUDO_USER and LUDO_DB. Update Client.Location mandatory, so fix on unit test

This commit is contained in:
Olivier PARPAILLON
2025-07-09 12:23:47 +02:00
parent 0e5748bc81
commit e633ec5a5f
3 changed files with 30 additions and 31 deletions

View File

@@ -27,7 +27,7 @@ public class Client {
@Column(nullable = false, unique = true)
private String email;
@OneToOne
@OneToOne(cascade = CascadeType.ALL, orphanRemoval = true, fetch = FetchType.EAGER, optional = false)
@JoinColumn(name = "LOCATION_ID")
private Location location;
}

View File

@@ -3,9 +3,9 @@ spring:
name: demo1
#Connection to DB
datasource:
url: jdbc:sqlserver://localhost;databasename=ludotheque;integratedSecurity=false;encrypt=false;trustServerCertificate=false
username: sa
password: Pa$$w0rd
url: jdbc:sqlserver://localhost;databasename=LUDO_DB;integratedSecurity=false;encrypt=false;trustServerCertificate=false
username: LUDO_USER
password: LUDO_PWD
#Options to DB
jpa: