All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.neo4j.ogm.quarkus.runtime.Neo4jOgmProperties Maven / Gradle / Ivy

There is a newer version: 3.9.0
Show newest version
/*
 * Copyright 2022 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.neo4j.ogm.quarkus.runtime;

import io.quarkus.runtime.annotations.ConfigItem;
import io.quarkus.runtime.annotations.ConfigPhase;
import io.quarkus.runtime.annotations.ConfigRoot;

import java.util.Optional;

/**
 * Shim between {@link org.neo4j.ogm.config.Configuration} and the Smallrye configuration.
 *
 * @author Michael J. Simons
 */
@ConfigRoot(prefix = "org.neo4j", name = "ogm", phase = ConfigPhase.RUN_TIME)
public class Neo4jOgmProperties {

	/**
	 * Should Neo4j native types be used for dates, times and similar?
	 */
	@ConfigItem(defaultValue = "false")
	public boolean useNativeTypes;

	/**
	 * This flag instructs OGM to use all static labels when querying domain objects.
	 */
	@ConfigItem(defaultValue = "false")
	public boolean useStrictQuerying;

	/**
	 * The database that should be used (Neo4j EE 4.0+ only). Leave empty for using the default database.
	 */
	@ConfigItem
	public Optional database;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy