Skip to content

Not compatible with GORM mongo #17

@sfqpublic

Description

@sfqpublic

When I use GORM mongo standalone,I removed HibernateDatastore from build.gradle dependencies as user guide suggested.
In SelfieGrailsPlugin.groovy source code

void doWithApplicationContext() {
        HibernateDatastore datastore = applicationContext.getBean(HibernateDatastore)
        applicationContext.addApplicationListener(new PersistenceEventListener(datastore))
        // grailsApplication.mainContext.eventTriggeringInterceptor.datastores.each { k, datastore ->
            // applicationContext.addApplicationListener new PersistenceEventListener(datastore)
        // }

    }

will throw exception because of no HibernateDatastore

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions