-
Jul 9th, 2012, 01:52 PM
#1
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
-
Jul 12th, 2012, 08:07 AM
#2
Have you tried
domain.findAllByInsname(..)?
Or even
domain.findAll("from YourDomain d where INSNAME = :insname", [insname: params.insname])
Hope to help.
-
Jul 12th, 2012, 08:11 AM
#3
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules