Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
04-30-2020 06:38 AM
I try to use the Micronaut Neo4j
integration, which provides a org.neo4j.driver.v1.Driver
bean, in combination with the Neo4j-OGM
native property types.
Currently I use the following sessionFactory
bean
@Requires(classes = [SessionFactory::class])
@Factory
class OgmFactory(
private val driver: Driver
) {
@Bean(preDestroy = "close")
fun sessionFactory(): SessionFactory {
val boltDriver = BoltDriver(driver) // how to set useNativeTypes here?
return SessionFactory(boltDriver, "my.domain")
}
}
Does anybody know how to opt-in to use native types with reusing existing Neo4j driver instance?
It works when using the Configuration.Builder().useNativeTypes()...
, but I want to avoid that the driver get's created multiple times.
Thank you
All the sessions of the conference are now available online