- * The Repository handles CRUD Operations. Every Operation is secured and takes care of the tenancy. - * For specific Documentation on how the generated REST point behaves, please consider the Spring - * Data Rest Reference + * The Repository handles CRUD Operations. Every Operation is secured and takes care of the tenancy. For specific Documentation on how the generated REST point + * behaves, please consider the Spring Data Rest Reference * here. *
*/ -@RepositoryRestResource @PreAuthorize("hasAuthority(T(de.muenchen.oss.wahllokalsystem.security.AuthoritiesEnum).WLS_BROADCAST_SERVICE_READ_THEENTITY.name())") public interface TheEntityRepository extends CrudRepository- * If the id already exists, the {@link TheEntity} will be overridden, hence update. - * If the id does not already exist, a new {@link TheEntity} will be created, hence create. + * If the id already exists, the {@link TheEntity} will be overridden, hence update. If the id does not already exist, a new {@link TheEntity} will be + * created, hence create. *
* * @param theEntity The {@link TheEntity} that will be saved. @@ -60,8 +57,8 @@ public interface TheEntityRepository extends CrudRepository- * If the id already exists, the {@link TheEntity}s will be overridden, hence update. - * If the id does not already exist, the new {@link TheEntity}s will be created, hence create. + * If the id already exists, the {@link TheEntity}s will be overridden, hence update. If the id does not already exist, the new {@link TheEntity}s will be + * created, hence create. *
* * @param entities The {@link TheEntity} that will be saved. From f2d10d3c26b40a6381262fe5713cafc8c63cf1f2 Mon Sep 17 00:00:00 2001 From: MrSebastian <13592751+MrSebastian@users.noreply.github.com> Date: Mon, 15 Apr 2024 16:04:23 +0200 Subject: [PATCH 56/61] remove yml configuration for spring data rest --- .../src/main/resources/application-dev.yml | 21 ++++++------------- .../src/main/resources/application-kon.yml | 9 -------- .../src/main/resources/application-local.yml | 9 -------- .../src/main/resources/application-prod.yml | 9 -------- .../src/main/resources/application-test.yml | 9 -------- 5 files changed, 6 insertions(+), 51 deletions(-) diff --git a/wls-broadcast-service/src/main/resources/application-dev.yml b/wls-broadcast-service/src/main/resources/application-dev.yml index e4930daa3..c3f8f19e9 100644 --- a/wls-broadcast-service/src/main/resources/application-dev.yml +++ b/wls-broadcast-service/src/main/resources/application-dev.yml @@ -1,25 +1,16 @@ spring: - # Spring data rest - data: - rest: - # Definition of page size for PagingAndSortingRepository - max-page-size: 0x7fffffff - default-page-size: 0x7fffffff - return-body-on-update: true - return-body-on-create: true - # Spring JPA h2.console.enabled: true jpa: database: H2 hibernate: - # always drop and create the db should be the best - # configuration for local (development) mode. this - # is also the default, that spring offers by convention. - # but here explicite: - ddl-auto: create-drop - naming.physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl + # always drop and create the db should be the best + # configuration for local (development) mode. this + # is also the default, that spring offers by convention. + # but here explicite: + ddl-auto: create-drop + naming.physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl # Logging for database operation show-sql: true properties: diff --git a/wls-broadcast-service/src/main/resources/application-kon.yml b/wls-broadcast-service/src/main/resources/application-kon.yml index 71edf659b..d3432e6bc 100644 --- a/wls-broadcast-service/src/main/resources/application-kon.yml +++ b/wls-broadcast-service/src/main/resources/application-kon.yml @@ -1,14 +1,5 @@ spring: - # Spring data rest - data: - rest: - # Definition of page size for PagingAndSortingRepository - max-page-size: 0x7fffffff - default-page-size: 0x7fffffff - return-body-on-update: true - return-body-on-create: true - # Spring JPA h2.console.enabled: true jpa: diff --git a/wls-broadcast-service/src/main/resources/application-local.yml b/wls-broadcast-service/src/main/resources/application-local.yml index 382e3a29b..00195fe90 100644 --- a/wls-broadcast-service/src/main/resources/application-local.yml +++ b/wls-broadcast-service/src/main/resources/application-local.yml @@ -2,15 +2,6 @@ server: port: 39146 spring: - # Spring data rest - data: - rest: - # Definition of page size for PagingAndSortingRepository - max-page-size: 0x7fffffff - default-page-size: 0x7fffffff - return-body-on-update: true - return-body-on-create: true - # Spring JPA h2.console.enabled: true jpa: diff --git a/wls-broadcast-service/src/main/resources/application-prod.yml b/wls-broadcast-service/src/main/resources/application-prod.yml index 7307c2766..a484ba0dd 100644 --- a/wls-broadcast-service/src/main/resources/application-prod.yml +++ b/wls-broadcast-service/src/main/resources/application-prod.yml @@ -1,14 +1,5 @@ spring: - # Spring data rest - data: - rest: - # Definition of page size for PagingAndSortingRepository - max-page-size: 0x7fffffff - default-page-size: 0x7fffffff - return-body-on-update: true - return-body-on-create: true - # Spring JPA h2.console.enabled: true jpa: diff --git a/wls-broadcast-service/src/main/resources/application-test.yml b/wls-broadcast-service/src/main/resources/application-test.yml index 4ffc28065..562b25f44 100644 --- a/wls-broadcast-service/src/main/resources/application-test.yml +++ b/wls-broadcast-service/src/main/resources/application-test.yml @@ -1,14 +1,5 @@ spring: - # Spring data rest - data: - rest: - # Definition of page size for PagingAndSortingRepository - max-page-size: 0x7fffffff - default-page-size: 0x7fffffff - return-body-on-update: true - return-body-on-create: true - # Spring JPA h2.console.enabled: true jpa: From 90ec711b0e7402436717f533a1f789f798548d1a Mon Sep 17 00:00:00 2001 From: MrSebastian <13592751+MrSebastian@users.noreply.github.com> Date: Mon, 15 Apr 2024 16:08:17 +0200 Subject: [PATCH 57/61] remove yml configuration for spring data rest --- .../src/test/resources/application-test.yml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/wls-broadcast-service/src/test/resources/application-test.yml b/wls-broadcast-service/src/test/resources/application-test.yml index d3c91569d..5dcd8fb74 100644 --- a/wls-broadcast-service/src/test/resources/application-test.yml +++ b/wls-broadcast-service/src/test/resources/application-test.yml @@ -1,14 +1,5 @@ spring: - # Spring data rest - data: - rest: - # Definition of page size for PagingAndSortingRepository - max-page-size: 0x7fffffff - default-page-size: 0x7fffffff - return-body-on-update: true - return-body-on-create: true - # Spring JPA h2.console.enabled: true jpa: From 568ce80dd6d9fc2142a25fd6a8f5564ae979ca4f Mon Sep 17 00:00:00 2001 From: MrSebastian <13592751+MrSebastian@users.noreply.github.com> Date: Mon, 15 Apr 2024 16:13:36 +0200 Subject: [PATCH 58/61] =?UTF-8?q?=E2=8F=AA=EF=B8=8F=20unintended=20format?= =?UTF-8?q?=20changes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wls-broadcast-service/pom.xml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/wls-broadcast-service/pom.xml b/wls-broadcast-service/pom.xml index 20938d9ca..238304782 100644 --- a/wls-broadcast-service/pom.xml +++ b/wls-broadcast-service/pom.xml @@ -1,6 +1,5 @@ -- * The Repository handles CRUD Operations. Every Operation is secured and takes care of the tenancy. For specific Documentation on how the generated REST point + * The Repository handles CRUD Operations. Every Operation is secured and takes care of the tenancy. + * For specific Documentation on how the generated REST point * behaves, please consider the Spring Data Rest Reference * here. *
@@ -42,7 +43,8 @@ public interface TheEntityRepository extends CrudRepository- * If the id already exists, the {@link TheEntity} will be overridden, hence update. If the id does not already exist, a new {@link TheEntity} will be + * If the id already exists, the {@link TheEntity} will be overridden, hence update. If the id does + * not already exist, a new {@link TheEntity} will be * created, hence create. *
* @@ -57,7 +59,8 @@ public interface TheEntityRepository extends CrudRepository- * If the id already exists, the {@link TheEntity}s will be overridden, hence update. If the id does not already exist, the new {@link TheEntity}s will be + * If the id already exists, the {@link TheEntity}s will be overridden, hence update. If the id does + * not already exist, the new {@link TheEntity}s will be * created, hence create. *
*