-
Problem with findAllBy
Hello,
I have used the function findAllBy-smth couple of times and it has been working fine. However, in one of my domains i have a preperty whose name is all capitalized ("INSNAME") and when i use findallby i (findAllByINSNAME(..)) it reports a missing property [iNSNAME]... Does Anyone know how to get it to recognize the property without having to change the way it is written?
Thanks in advance
Hnalsaf10
-
Have you tried
domain.findAllByInsname(..)?
Or even
domain.findAll("from YourDomain d where INSNAME = :insname", [insname: params.insname])
Hope to help.
-
Yes, I have tried all of these. And actually I solved the issue.
since I needed a list of with conditions. I created a new action in my controller, that gets this list with createCriteria().
Thanks anyways.