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

io.github.graphglue.model.GraphglueModelConfiguration.kt Maven / Gradle / Ivy

Go to download

A library to develop annotation-based code-first GraphQL servers using GraphQL Kotlin, Spring Boot and Neo4j - excluding Spring GraphQL server dependencies

There is a newer version: 7.0.5
Show newest version
package io.github.graphglue.model

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.data.neo4j.core.support.UUIDStringGenerator

/**
 * Configuration of model related beans
 */
@Configuration
class GraphglueModelConfiguration {

    /**
     * Default node id generator
     *
     * @return the generator for node ids
     */
    @Bean(NODE_ID_GENERATOR_BEAN)
    @ConditionalOnMissingBean
    fun nodeIdGenerator() = UUIDStringGenerator()

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy