Update the README and the configuration.
This commit is contained in:
@@ -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
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
@@ -147,7 +147,6 @@
|
||||
<groupId>net.bytebuddy</groupId>
|
||||
<artifactId>byte-buddy</artifactId>
|
||||
<version>1.14.8</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency> <!-- enables mocking of classes without default constructor (together with ByteBuddy or CGLIB) -->
|
||||
<groupId>org.objenesis</groupId>
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user