2 Commits
Author SHA1 Message Date
KKlochko 556e928e42 Update the version.
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2023-11-14 18:53:45 +02:00
KKlochko f4c1632ad4 Update the README and the configuration.
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2023-11-14 18:45:57 +02:00
4 changed files with 8 additions and 9 deletions
+4 -4
View File
@@ -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
+2 -2
View File
@@ -4,7 +4,7 @@ plugins {
id 'com.github.johnrengelman.shadow' version '7.1.2'
}
version = "2.0.0"
version = "2.0.1"
description = "Example of using jpa for a hostpital."
application {
@@ -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
+1 -2
View File
@@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>space.kklochko</groupId>
<artifactId>jpa_hospital_example</artifactId>
<version>2.0.0</version>
<version>2.0.1</version>
<packaging>jar</packaging>
<name>Example of using jpa for a hostpital.</name>
@@ -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();