KKlochko 556e928e42
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
Update the version.
2023-11-14 18:53:45 +02:00
2023-09-06 15:46:58 +02:00
2023-10-28 22:00:39 +03:00
2023-11-14 18:53:45 +02:00
2023-09-06 15:20:21 +02:00
2023-09-06 15:20:21 +02:00
2012-02-28 03:19:11 +01:00
2023-09-06 15:19:33 +02:00
2012-02-28 03:19:11 +01:00
2023-11-14 18:53:45 +02:00

jpa-hospital-example

This project is a example of using jpa.

The project uses the Spock Framework Example Project

Prerequisites

  • JDK 17 or higher

  • Maven use mvnw wrapper

  • Gradle use gradlew wrapper

Building with Gradle

Downloaded files (including the Gradle distribution itself) will be stored in the Gradle user home directory (typically user_home/.gradle).

Type: test

./gradlew clean test

Type: build

./gradlew clean build

Type: preparation

  • create a folder, for example, project.
  • 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:
    docker-compose up -d
    
  • wait a minute while the database is bootstrapping.
  • now you can connect with the application.

Type: run

After the preparation, run the application in the folder, for example, project:

java -jar jpa_hospital_example-2.0.1.jar

Building with Maven

Downloaded files will be stored in the local Maven repository (typically user_home/.m2/repository).

Type: test

./mvnw clean test

Type: build

./mvnw clean package

Type: preparation

  • create a folder, for example, project.
  • copy jpa_hospital_example-version.jar from a release to the folder.
    • if you build the application from source, find the file in target/.
  • copy docker/docker-compose.yml to the folder.
  • turn up the database in the project/docker:
    docker-compose up -d
    
  • wait a minute while the database is bootstrapping.
  • now you can connect with the application.

Type: run

After the preparation, run the application in the folder, for example, project:

java -jar jpa_hospital_example-2.0.1.jar

Author

Kostiantyn Klochko (c) 2023

S
Description
No description provided
Readme
817 KiB
2.0.1
Latest
2023-11-14 16:53:45 +00:00
Languages
Java 55.6%
Groovy 44.4%