Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 1.0.1
-
Fix Version/s: 1.0.2
-
Component/s: Configuration, Persistence
-
Labels:None
-
Testcase included:yes
Description
After adding a "dataSource" bean to resources.groovy none of the GORM dynamic methods are applied to my Java based and hibernate annotated domain classes.
I have attached a sample application that reproduces the issue.
- Extract datasource-test.zip
- grails run-app
- browse to http://localhost:8080/datasource-test/contact/list
- Get Error --> Message: No signature of method: static com.example.contacts.Contact.list() is applicable for argument types: (org.codehaus.groovy.grails.web.servlet.mvc.GrailsParameterMap) values: {["max":10, "action":"list", "controller":"contact"]}
To be sure the app is ok..
- Comment out the dataSource bean in resources.groovy
- grails run-app
- browse to http://localhost:8080/datasource-test/contact/list
No errors
I will continue to look for a patch...
From http://www.nabble.com/Custom-Datasource-and-Hibernate-Annotated-Java-Domain-classes-td15861568.html