io.github.graphglue.model.GraphglueModelConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of graphglue-core Show documentation
Show all versions of graphglue-core Show documentation
A library to develop annotation-based code-first GraphQL servers using GraphQL Kotlin, Spring Boot and Neo4j - excluding Spring GraphQL server dependencies
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()
}