gorm and interface projections

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

gorm and interface projections

José Vilmar Estácio de Souza

Hi all.

Interface Projections in gorm data service is a nice feature but I need a clarification regarding the query generated to extract the data to be exposed.

If I have an interface projection like the following:

interface authorInfo {

String getName()


Unless I am doing something wrong, the query created to retrieve the information represented by AuthorInfo retrieve all fields of the table.

Hibernate: select this_.id as id1_0_0_, this_.version as version2_0_0_, this_.name as name3_0_0_, this_.date_of_birth as date_of_4_0_0_ from author this_ where this_.name=? limit ?


Assinatura Informal José Vilmar, Telefones: 21 2555-2650 e 21 98868-0859,
        Skype: jvilmar

You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/f88312d0-0cbd-e570-cff0-5675f4814eb4%40informal.com.br.
For more options, visit https://groups.google.com/d/optout.