Can anybody point me to the right place when trying to understand where exactly the magic of the dynamic fniders such as findAll, findBy, findAllWhere ... is happening
I was thinking that it will happen in some 'methodMissing' implementation of the domain classes, but obviously is a lot more complicated than that.
I looked in
http://grails.org/General+Architecture where it mentions the org.codehaus.groovy.grails.commons.GrailsDomainClass. I I also looked at org.codehaus.groovy.grails.orm.hibernate.metaclass.FindAllByPersistentMethod , org.codehaus.groovy.grails.plugins.orm.hibernate.HibernatePluginSupport and org.codehaus.groovy.grails.orm.hibernate.cfg.HibernateNamedQueriesBuilder
I see pieces of it, but I dont see where the dynamic finders are injected into the domain classes through MOP I am assuming.
Any pointers or documents that I can look at would be appreciated it.