mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2026-01-06 18:41:11 +00:00
docker compose and sonarqube issues
Signed-off-by: rhita-rh <rhita.rhallami@um6p.ma>
This commit is contained in:
parent
b5a630b199
commit
87bd72053a
2 changed files with 26 additions and 0 deletions
|
|
@ -1,4 +1,15 @@
|
|||
services:
|
||||
app:
|
||||
image: lilitaa/pet-clinic
|
||||
ports:
|
||||
- "8080:8080"
|
||||
environment:
|
||||
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/petclinic
|
||||
SPRING_DATASOURCE_USERNAME: petclinic
|
||||
SPRING_DATASOURCE_PASSWORD: petclinic
|
||||
depends_on:
|
||||
- postgres
|
||||
|
||||
mysql:
|
||||
image: mysql:9.2
|
||||
ports:
|
||||
|
|
|
|||
|
|
@ -163,6 +163,21 @@ public class Owner extends Person {
|
|||
* @param visit the visit to add, must not be {@literal null}.
|
||||
*/
|
||||
public void addVisit(Integer petId, Visit visit) {
|
||||
int value = 22;
|
||||
int value2 = 22;
|
||||
int value3 = 22;
|
||||
int value4 = 22;
|
||||
Assert.notNull(petId, "Pet identifier must not be null!");
|
||||
Assert.notNull(visit, "Visit must not be null!");
|
||||
|
||||
Pet pet = getPet(petId);
|
||||
|
||||
Assert.notNull(pet, "Invalid Pet identifier!");
|
||||
|
||||
pet.addVisit(visit);
|
||||
}
|
||||
|
||||
public void addVisit2(Integer petId, Visit visit) {
|
||||
|
||||
Assert.notNull(petId, "Pet identifier must not be null!");
|
||||
Assert.notNull(visit, "Visit must not be null!");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue