push just for merge puspose

Arthur_API-Users
David D'ALMEIDA 2 years ago
parent 59efe2c595
commit 7ffadcb29c

@ -63,14 +63,14 @@
<artifactId>quarkus-smallrye-openapi</artifactId>
</dependency>
<!-- Dependency for openID -->
<dependency>
<!-- <dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-oidc</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-oidc-client</artifactId>
</dependency>
</dependency> -->
<!-- Dependency for Keyclock -->
<!-- <dependency>

@ -127,6 +127,7 @@ public class UserController {
}
@DELETE
@Path("/{id}")
@ReactiveTransactional
public Uni<Response> delete(@PathParam("id") Long id) {
return service.deleteById(id)

@ -2,13 +2,17 @@ package org.acme.Hibernates.entities;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.UUID;
import javax.persistence.Entity;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
@Entity
public class GameEntity {
@Id
@ -87,4 +91,7 @@ public class GameEntity {
return this.isFinished;
}
@OneToMany(mappedBy = "game", cascade = CascadeType.ALL, orphanRemoval = true)
public List<RoundEntity> rounds = new ArrayList<>();
}

@ -1,5 +0,0 @@
package org.acme.Hibernates.entities;
public class RoudEntity {
}

@ -0,0 +1,34 @@
package org.acme.Hibernates.entities;
import javax.persistence.Entity;
// @Entity
public class RoundEntity {
private int firstThrow;
private int secondThrow;
private int points;
public int getFirstThrow() {
return this.firstThrow;
}
public void setFirstThrow(int firstThrow) {
this.secondThrow = firstThrow;
}
public int getSecondThrow() {
return this.secondThrow;
}
public void setSecondThrow(int secondThrow) {
this.secondThrow = secondThrow;
}
public int getPoints() {
return this.points;
}
public void setPoints(int points) {
this.points = points;
}
}

@ -10,5 +10,4 @@ public class Game {
private UUID winner;
private int nbPoints;
private Boolean isFinished;
}

@ -1,23 +1,23 @@
# achanger
quarkus.datasource.db-kind = postgresql
quarkus.datasource.username = bowlin_team
quarkus.datasource.password = bowlin
quarkus.datasource.reactive.url = vertx-reactive:postgresql://localhost:5432/bowlin
quarkus.datasource.username = postgres
quarkus.datasource.password = achanger
quarkus.datasource.reactive.url = vertx-reactive:postgresql://localhost:5432/postgres
quarkus.hibernate-orm.log.sql=true
quarkus.hibernate-orm.sql-load-script=import.sql
#HTTPS Configuration
# #HTTPS Configuration
quarkus.http.ssl.certificate.key-files=https/privkey.pem
quarkus.http.ssl.certificate.files=https/cert.pem
# quarkus.http.ssl.certificate.key-files=https/privkey.pem
# quarkus.http.ssl.certificate.files=https/cert.pem
# Disable the HTTP server
quarkus.http.insecure-requests=redirect
# # Disable the HTTP server
# quarkus.http.insecure-requests=redirect
# OIDC Configuration
quarkus.oidc.auth-server-url=http://localhost:8080/realms/BowlinAuth
quarkus.oidc.client-id=bowlee
quarkus.oidc.application-type=service
# # OIDC Configuration
# quarkus.oidc.auth-server-url=http://localhost:8080/realms/BowlinAuth
# quarkus.oidc.client-id=bowlee
# quarkus.oidc.application-type=service
# # drop and create the database at startup (use `update` to only update the schema)
quarkus.hibernate-orm.database.generation = drop-and-create

Loading…
Cancel
Save