Class AggregateReferenceResolvingModule

java.lang.Object
tools.jackson.databind.JacksonModule
tools.jackson.databind.module.SimpleModule
org.springframework.data.rest.webmvc.json.AggregateReferenceResolvingModule
All Implemented Interfaces:
Serializable, tools.jackson.core.Versioned

public class AggregateReferenceResolvingModule extends SimpleModule
Jackson module to enable aggregate reference resolution for non-aggregate root types. This is primarily useful for any kind of payload mapping DTO that is supposed to be able to map URIs to aggregate roots.
Since:
3.5
Author:
Oliver Drotbohm, Mark Paluch
See Also:
  • Constructor Details

    • AggregateReferenceResolvingModule

      public AggregateReferenceResolvingModule(org.springframework.data.rest.core.UriToEntityConverter converter, org.springframework.data.rest.core.mapping.ResourceMappings mappings)
      Creates a new AggregateReferenceResolvingModule using the given UriToEntityConverter and ResourceMappings.
      Parameters:
      converter - must not be null.
      mappings - must not be null.