grails-data-mapping
grails-data-mapping copied to clipboard
data service class fails to compile when inherited property is used as finder parameter
Task List
- [x] Steps to reproduce provided
- [ ] Stacktrace (if present) provided
- [x] Example that reproduces the problem uploaded to Github
- [x] Full description of the issue provided (see below)
Steps to Reproduce
- create new grails app
- create an abstract class with one property
- create a domain model and extend class from step 2
- create data service class for domain model in step 3
- add one finder method using the property in step 2 as parameter
- run build
Expected Behaviour
build should be successful
Actual Behaviour
compilation error message thrown: Cannot implement finder for non-existent property [name] of class [sample.Employee]
Environment Information
- Operating System: Mac OS High Sierra 10.13.4
- Grails Version: 3.3.6
- GORM Version: 6.1.10.BUILD-SNAPSHOT
- JDK Version: 1.8.0_171
- Container Version (If Applicable):
Example Application
- https://github.com/aaporjr/cannot-implement-for-non-existent-property
Experiencing the same issue, would be great to see this resolved
Reported same issue for Micronaut here on issue link Although I was asked report it on this repo, but found same one here for GRAILS.
It would be really great if we get a fix for this soon, thanks.
I ran into this today too, following...