grails-gson icon indicating copy to clipboard operation
grails-gson copied to clipboard

Make resolveProxies configurable per class

Open sergiomichels opened this issue 11 years ago • 1 comments

This is not an issue, but a feature request. It would be nice to determine, maybe in the domain class configuration, if a proxy must be resolved or not.

For example:

AccessPerson {
  static belongsTo = [ person: Person, access: Access ]
  ...
}

Person is a big record, so I want to just load his id, but Access is a small record, so I want to resolve the proxy and output all attributes.

Now I can just set the grails.converters.gson.resolveProxies, or am I missing some configuration?

sergiomichels avatar Jul 09 '13 12:07 sergiomichels

Right now there's no way to do it individually.

robfletcher avatar Jul 09 '13 16:07 robfletcher