From c80f79d14c01d628402f89040160db7b3b3d48b7 Mon Sep 17 00:00:00 2001 From: Roberto Cortez Date: Mon, 26 Aug 2024 16:42:12 +0100 Subject: [PATCH] Move config to @ConfigMapping --- .../org/neo4j/ogm/quarkus/runtime/CustomConfigBuilder.java | 6 ++++-- .../org/neo4j/ogm/quarkus/runtime/Neo4jOgmProperties.java | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/runtime/src/main/java/org/neo4j/ogm/quarkus/runtime/CustomConfigBuilder.java b/runtime/src/main/java/org/neo4j/ogm/quarkus/runtime/CustomConfigBuilder.java index 4eebf44..8ce3628 100644 --- a/runtime/src/main/java/org/neo4j/ogm/quarkus/runtime/CustomConfigBuilder.java +++ b/runtime/src/main/java/org/neo4j/ogm/quarkus/runtime/CustomConfigBuilder.java @@ -19,14 +19,16 @@ import io.smallrye.config.SmallRyeConfigBuilderCustomizer; /** - * Fix things. + * Config customizer to ignore validation of unmapped properties between build-time and runtime. + * * @author Michael J. Simons + * @see Neo4jOgmBuiltTimeProperties + * @see Neo4jOgmProperties */ public class CustomConfigBuilder implements SmallRyeConfigBuilderCustomizer { @Override public void configBuilder(final SmallRyeConfigBuilder builder) { - builder.withMappingIgnore("org.neo4j.ogm.**"); } } diff --git a/runtime/src/main/java/org/neo4j/ogm/quarkus/runtime/Neo4jOgmProperties.java b/runtime/src/main/java/org/neo4j/ogm/quarkus/runtime/Neo4jOgmProperties.java index d9e5ee0..cd6aff5 100644 --- a/runtime/src/main/java/org/neo4j/ogm/quarkus/runtime/Neo4jOgmProperties.java +++ b/runtime/src/main/java/org/neo4j/ogm/quarkus/runtime/Neo4jOgmProperties.java @@ -27,7 +27,7 @@ * * @author Michael J. Simons */ -@ConfigMapping(prefix = "quarkus.neo4j.ogm") +@ConfigMapping(prefix = "org.neo4j.ogm") @ConfigRoot(phase = ConfigPhase.RUN_TIME) public interface Neo4jOgmProperties {