Skip to content

Commit

Permalink
polish (#1467)
Browse files Browse the repository at this point in the history
* polish

* Update version
  • Loading branch information
rajadilipkolli authored Oct 25, 2024
1 parent 10358e6 commit da5124c
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM gitpod/workspace-full
USER root

RUN bash -c ". /home/gitpod/.sdkman/bin/sdkman-init.sh \
&& sdk install java 21.0.2-graalce \
&& sdk default java 21.0.2-graalce"
&& sdk install java 21.0.5-graalce \
&& sdk default java 21.0.5-graalce"


2 changes: 1 addition & 1 deletion jpa/boot-data-envers/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3.8'
services:

postgresqldb:
image: postgres:16.4-alpine
image: postgres:17.0-alpine
environment:
- POSTGRES_USER=appuser
- POSTGRES_PASSWORD=secret
Expand Down
1 change: 0 additions & 1 deletion jpa/boot-data-envers/lombok.config

This file was deleted.

2 changes: 1 addition & 1 deletion jpa/boot-data-envers/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@
<configuration>
<java>
<palantirJavaFormat>
<version>2.47.0</version>
<version>2.50.0</version>
</palantirJavaFormat>
<importOrder/>
<removeUnusedImports/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class CustomerRevisionToRevisionResultMapper {
public RevisionResult convert(Revision<Integer, Customer> customerRevision) {
return new RevisionResult(
customerRevision.getEntity(),
customerRevision.getMetadata().getRevisionNumber(),
customerRevision.getRevisionNumber(),
customerRevision.getMetadata().getRevisionType().name(),
customerRevision.getMetadata().getRevisionInstant());
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
spring.application.name=boot-data-envers
server.port=8080
server.shutdown=graceful
spring.main.allow-bean-definition-overriding=true
spring.jmx.enabled=false
spring.mvc.problemdetails.enabled=true
spring.threads.virtual.enabled=true

################ Actuator #####################
management.endpoints.web.exposure.include=configprops,env,health,info,logfile,loggers,metrics,prometheus
Expand All @@ -14,6 +14,8 @@ spring.jpa.show-sql=false
spring.jpa.open-in-view=false
spring.data.jpa.repositories.bootstrap-mode=deferred
spring.datasource.hikari.auto-commit=false
spring.datasource.hikari.pool-name=HikariPool-${spring.application.name}
spring.datasource.hikari.data-source-properties.ApplicationName=${spring.application.name}
spring.jpa.hibernate.ddl-auto=none
#spring.jpa.properties.hibernate.format_sql=true
spring.jpa.properties.hibernate.jdbc.time_zone=UTC
Expand All @@ -28,4 +30,3 @@ spring.jpa.properties.hibernate.connection.provider_disables_autocommit=true
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
spring.jpa.properties.org.hibernate.envers.audit_strategy=org.hibernate.envers.strategy.internal.ValidityAuditStrategy

spring.threads.virtual.enabled=true
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ public class ContainersConfig {
@Bean
@ServiceConnection
PostgreSQLContainer<?> postgreSQLContainer() {
return new PostgreSQLContainer<>(DockerImageName.parse("postgres:16.3-alpine"));
return new PostgreSQLContainer<>(DockerImageName.parse("postgres:17.0-alpine"));
}
}

0 comments on commit da5124c

Please sign in to comment.