Compare commits

...

8 Commits

Author SHA1 Message Date
Timotheus Pokorra
95457980d8 use alias gw 2024-01-02 10:35:47 +01:00
Timotheus Pokorra
70d73d8caa added gradlew again 2024-01-02 10:30:52 +01:00
Timotheus Pokorra
bdac905958 adjust README 2024-01-02 09:51:08 +01:00
Timotheus Pokorra
1c19afefa6 avoid error in openapi for ambigous mapping for findRelationshipRelatedToPersonUuid 2023-09-04 20:37:40 +02:00
Timotheus Pokorra
0edc2cca91 add dependancy for swagger-ui / springdoc-openapi
according to
https://www.baeldung.com/spring-rest-openapi-documentation and
https://central.sonatype.com/artifact/org.springdoc/springdoc-openapi-starter-webmvc-ui/2.2.0
2023-09-04 20:23:57 +02:00
Timotheus Pokorra
51c658cdc7 no need to install gradle anymore 2023-07-19 14:19:54 +02:00
Timotheus Pokorra
796d1a0991 README: use gradlew instead of gradle wrapper
add instructions for starting the postgresql docker container if the
container has been built already
2023-07-19 09:43:06 +02:00
Timotheus Pokorra
5986ca26fe README: add instructions to install jdk 17 and gradle 7.6.2 on Ubuntu 22.02 2023-07-18 10:58:57 +02:00
3 changed files with 8 additions and 4 deletions

View File

@ -54,7 +54,6 @@ To be able to build and run the Java Spring Boot application, you need the follo
(see instructions below to install and run in Docker)
- Java JDK at least recent enough to run Gradle
(JDK 17.x will be automatically installed by Gradle toolchain support)
- Gradle in some not too outdated version (7.4 will be installed via wrapper)
You also might need an IDE (e.g. *IntelliJ IDEA* or *Eclipse* or *VS Code* with *[STS](https://spring.io/tools)* and a GUI Frontend for *PostgreSQL* like *Postbird*.
@ -62,12 +61,16 @@ If you have at least Docker, the Java JDK and Gradle installed in appropriate ve
cd your-hsadmin-ng-directory
gradle wrapper # downloads the configured Gradle version into the project
source .aliases # creates some comforable bash aliases, e.g. 'gw'='./gradlew'
source .aliases # creates some comfortable bash aliases, e.g. 'gw'='./gradlew'
gw # downloads the configured Gradle version into the project
gw test # compiles and runs unit- and integration-tests
# if the container has not been built yet, run this:
pg-sql-run # downloads + runs PostgreSQL in a Docker container on localhost:5432
# if the container has been built already, run this:
pg-sql-start
gw bootRun # compiles and runs the application on localhost:8080
# the following command should reply with "pong":

View File

@ -67,6 +67,7 @@ dependencies {
implementation 'org.apache.commons:commons-text:1.10.0'
implementation 'org.modelmapper:modelmapper:3.1.0'
implementation 'org.iban4j:iban4j:3.2.3-RELEASE'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0'
compileOnly 'org.projectlombok:lombok'
testCompileOnly 'org.projectlombok:lombok'

View File

@ -20,7 +20,7 @@ public interface HsOfficeRelationshipRepository extends Repository<HsOfficeRelat
SELECT p.* FROM hs_office_relationship_rv AS p
WHERE p.relAnchorUuid = :personUuid OR p.relHolderUuid = :personUuid
""", nativeQuery = true)
List<HsOfficeRelationshipEntity> findRelationshipRelatedToPersonUuid(@NotNull UUID personUuid);
List<HsOfficeRelationshipEntity> findRelationshipRelatedToPersonUuid2(@NotNull UUID personUuid);
@Query(value = """
SELECT p.* FROM hs_office_relationship_rv AS p