@groovy.transform.CompileStatic class Neo4jGormApiFactory extends DefaultGormApiFactory
Neo4j-specific GormApiFactory that creates a
Neo4jGormStaticApi instead of the generic GormStaticApi. Without it the
GormRegistry falls back to the DefaultGormApiFactory, whose generic
GormStaticApi breaks casts like (Neo4jGormStaticApi) GormEnhancer.findStaticApi(...)
used by Neo4jEntity/Node for cypherStatic, findRelationship,
findPath, etc. The instance and validation APIs reuse the generic GORM implementations
inherited from DefaultGormApiFactory, matching Neo4jDatastore's existing
GormEnhancer overrides.
| Constructor and description |
|---|
Neo4jGormApiFactory() |
| Type Params | Return Type | Name and description |
|---|---|---|
<D> |
Neo4jGormStaticApi<D> |
createStaticApi(java.lang.Class<D> persistentClass, MappingContext mappingContext, DatastoreResolver resolver, java.lang.String qualifier, GormRegistry registry) |
| Methods inherited from class | Name |
|---|---|
class DefaultGormApiFactory |
createDynamicFinders, createInstanceApi, createStaticApi, createValidationApi |