Results 1 to 3 of 3

Thread: Problem with findAllBy

  1. #1
    Join Date
    May 2012
    Posts
    6

    Default 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

  2. #2

    Default

    Have you tried

    domain.findAllByInsname(..)?

    Or even

    domain.findAll("from YourDomain d where INSNAME = :insname", [insname: params.insname])

    Hope to help.

  3. #3
    Join Date
    May 2012
    Posts
    6

    Default

    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
  •