Quantcast

where is the dynamic finder magic happening

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

where is the dynamic finder magic happening

fiallega
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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: where is the dynamic finder magic happening

Raphael Miranda

static
void enhanceProxyClass(Class proxyClass)


On Sun, Jul 31, 2011 at 11:41 AM, fiallega <[hidden email]> wrote:
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.


--
View this message in context: http://grails.1312388.n4.nabble.com/where-is-the-dynamic-finder-magic-happening-tp3707864p3707864.html
Sent from the Grails - user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email





--
-Raphael Miranda
@raphaom 


Loading...