Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
GORM REST Client: fixed invalid bean names
Browse files Browse the repository at this point in the history
  • Loading branch information
graemerocher committed Aug 28, 2013
1 parent abb9e9f commit bfdbed5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Expand Up @@ -34,9 +34,9 @@ class RestClientSpringConfigurer extends SpringConfigurer{
return {
def restClientConfig = application.config?.grails?.gorm?.restClient.clone()
final defaultMapping = restClientConfig?.default?.mapping
restClientMappingContext(RestClientMappingContext, defaultMapping instanceof Closure ? defaultMapping : {})
restClientDataStore(RestClientDatastoreFactoryBean) {
mappingContext = ref("restClientMappingContext")
restclientMappingContext(RestClientMappingContext, defaultMapping instanceof Closure ? defaultMapping : {})
restclientDatastore(RestClientDatastoreFactoryBean) {
mappingContext = ref("restclientMappingContext")
connectionDetails = restClientConfig
}
}
Expand Down
4 changes: 2 additions & 2 deletions grails-plugins/rest-client/GormRestClientGrailsPlugin.groovy
Expand Up @@ -57,8 +57,8 @@ A GORM implementation that can back onto a REST web service
def doWithSpring = new RestClientSpringConfigurer().getConfiguration()

def doWithDynamicMethods = { ctx ->
def datastore = ctx.mongoDatastore
def transactionManager = ctx.restClientTransactionManager
def datastore = ctx.getBean("restclientDatastore")
def transactionManager = ctx.getBean("restclientTransactionManager")
def methodsConfigurer = new RestClientMethodsConfigurer(datastore, transactionManager)
methodsConfigurer.hasExistingDatastore = manager.hasGrailsPlugin("hibernate")
def foe = application?.config?.grails?.gorm?.failOnError
Expand Down

0 comments on commit bfdbed5

Please sign in to comment.