From f4c1632ad45d9c99e03a97bea46ce5835f07a103 Mon Sep 17 00:00:00 2001 From: KKlochko Date: Tue, 14 Nov 2023 18:45:57 +0200 Subject: [PATCH] Update the README and the configuration. --- README.md | 8 ++++---- build.gradle | 2 +- pom.xml | 1 - .../java/space/kklochko/jpa_hospital_example/Main.java | 2 +- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index a6b1c01..517af3a 100644 --- a/README.md +++ b/README.md @@ -30,8 +30,8 @@ Type: build Type: preparation - create a folder, for example, `project`. -- copy `jpa_hospital_example-1.0.2.jar` from a release to the folder. - - if you build the application from source, find the file (`jpa_hospital_example-1.0.2-all.jar`) in `build/libs/`. +- copy `jpa_hospital_example-2.0.1.jar` from a release to the folder. + - if you build the application from source, find the file (`jpa_hospital_example-2.0.1-all.jar`) in `build/libs/`. - copy docker/docker-compose.yml to the folder. - turn up the database in the `project/docker`: ``` @@ -44,7 +44,7 @@ Type: run After the preparation, run the application in the folder, for example, `project`: ```shell -java -jar jpa_hospital_example-1.0.2.jar +java -jar jpa_hospital_example-2.0.1.jar ``` ## Building with Maven @@ -80,7 +80,7 @@ Type: run After the preparation, run the application in the folder, for example, `project`: ```shell -java -jar jpa_hospital_example-1.0.2.jar +java -jar jpa_hospital_example-2.0.1.jar ``` ## Author diff --git a/build.gradle b/build.gradle index 0b678cb..dda21da 100644 --- a/build.gradle +++ b/build.gradle @@ -55,7 +55,7 @@ dependencies { // optional dependencies for using Spock testImplementation "org.hamcrest:hamcrest-core:2.2" // only necessary if Hamcrest matchers are used - testRuntimeOnly 'net.bytebuddy:byte-buddy:1.14.8' // allows mocking of classes (in addition to interfaces) + implementation 'net.bytebuddy:byte-buddy:1.14.8' // allows mocking of classes (in addition to interfaces) testRuntimeOnly "org.objenesis:objenesis:3.3" // allows mocking of classes without default constructor (together with ByteBuddy or CGLIB) // testing dependencies for sql diff --git a/pom.xml b/pom.xml index 59407fb..dc6f49c 100644 --- a/pom.xml +++ b/pom.xml @@ -147,7 +147,6 @@ net.bytebuddy byte-buddy 1.14.8 - test org.objenesis diff --git a/src/main/java/space/kklochko/jpa_hospital_example/Main.java b/src/main/java/space/kklochko/jpa_hospital_example/Main.java index 3effa83..c14bacd 100644 --- a/src/main/java/space/kklochko/jpa_hospital_example/Main.java +++ b/src/main/java/space/kklochko/jpa_hospital_example/Main.java @@ -6,7 +6,7 @@ import space.kklochko.jpa_hospital_example.db.factories.EntityManagerConnection; public class Main { public static void main(String[] args) { - EntityManager manager = (new EntityManagerConnection()).connect(); + EntityManager manager = (new EntityManagerConnection("jpa_hospital_example")).connect(); CLI cli = new CLI(manager); cli.run();