Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make resolveProxies configurable per class #39

Open
sergiomichels opened this issue Jul 9, 2013 · 1 comment
Open

Make resolveProxies configurable per class #39

sergiomichels opened this issue Jul 9, 2013 · 1 comment

Comments

@sergiomichels
Copy link

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?

@robfletcher
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants