Skip to content

Make resolveProxies configurable per class #39

@sergiomichels

Description

@sergiomichels

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions