@groovy.transform.CompileStatic class MongoGormApiFactory extends DefaultGormApiFactory
MongoDB-specific GormApiFactory that creates a
MongoStaticApi instead of the generic GormStaticApi. Without it the
GormRegistry falls back to the DefaultGormApiFactory, whose generic
GormStaticApi breaks the (MongoStaticApi) GormEnhancer.findStaticApi(...) cast in
MongoEntity. Only the static API is MongoDB-specific; the instance and validation APIs
reuse the generic GORM implementations inherited from DefaultGormApiFactory, matching the
MongoGormEnhancer overrides.
| Constructor and description |
|---|
MongoGormApiFactory() |
| Type Params | Return Type | Name and description |
|---|---|---|
<D> |
MongoStaticApi<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 |