Update the README and the configuration.

main
KKlochko 1 year ago
parent 2f951e2d1c
commit f4c1632ad4

@ -30,8 +30,8 @@ Type: build
Type: preparation Type: preparation
- create a folder, for example, `project`. - create a folder, for example, `project`.
- copy `jpa_hospital_example-1.0.2.jar` from a release to the folder. - 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-1.0.2-all.jar`) in `build/libs/`. - 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. - copy docker/docker-compose.yml to the folder.
- turn up the database in the `project/docker`: - 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`: After the preparation, run the application in the folder, for example, `project`:
```shell ```shell
java -jar jpa_hospital_example-1.0.2.jar java -jar jpa_hospital_example-2.0.1.jar
``` ```
## Building with Maven ## Building with Maven
@ -80,7 +80,7 @@ Type: run
After the preparation, run the application in the folder, for example, `project`: After the preparation, run the application in the folder, for example, `project`:
```shell ```shell
java -jar jpa_hospital_example-1.0.2.jar java -jar jpa_hospital_example-2.0.1.jar
``` ```
## Author ## Author

@ -55,7 +55,7 @@ dependencies {
// optional dependencies for using Spock // optional dependencies for using Spock
testImplementation "org.hamcrest:hamcrest-core:2.2" // only necessary if Hamcrest matchers are used 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) testRuntimeOnly "org.objenesis:objenesis:3.3" // allows mocking of classes without default constructor (together with ByteBuddy or CGLIB)
// testing dependencies for sql // testing dependencies for sql

@ -147,7 +147,6 @@
<groupId>net.bytebuddy</groupId> <groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId> <artifactId>byte-buddy</artifactId>
<version>1.14.8</version> <version>1.14.8</version>
<scope>test</scope>
</dependency> </dependency>
<dependency> <!-- enables mocking of classes without default constructor (together with ByteBuddy or CGLIB) --> <dependency> <!-- enables mocking of classes without default constructor (together with ByteBuddy or CGLIB) -->
<groupId>org.objenesis</groupId> <groupId>org.objenesis</groupId>

@ -6,7 +6,7 @@ import space.kklochko.jpa_hospital_example.db.factories.EntityManagerConnection;
public class Main { public class Main {
public static void main(String[] args) { 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 cli = new CLI(manager);
cli.run(); cli.run();

Loading…
Cancel
Save