grails-data-mapping icon indicating copy to clipboard operation
grails-data-mapping copied to clipboard

data service class fails to compile when inherited property is used as finder parameter

Open aaporjr opened this issue 7 years ago • 3 comments

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

  1. create new grails app
  2. create an abstract class with one property
  3. create a domain model and extend class from step 2
  4. create data service class for domain model in step 3
  5. add one finder method using the property in step 2 as parameter
  6. 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

aaporjr avatar Jul 27 '18 10:07 aaporjr

Experiencing the same issue, would be great to see this resolved

alanbino avatar Oct 25 '18 13:10 alanbino

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.

adityathakur-ast avatar Nov 22 '18 18:11 adityathakur-ast

I ran into this today too, following...

benatwork99 avatar Apr 08 '21 03:04 benatwork99