src/main/java/com/opencredo/demo/hateoas/api/EmbeddableResourceAssemblerSupport.java
/**
    * Create a wrapped representation of a collection, to be added to the _embedded Resources of the containing resource
    * It relies on the embedded resource being annotated with {@link Relation} 
    * and the collection of embedded objects being annotated with {@link JsonUnwrapped} (see {@link BookResource#setEmbeddeds()})
    */
Create a wrapped representation of a collection, to be added to the _embedded Resources of the containing resource
It relies on the embedded resource being annotated with  Relation
and the collection of embedded objects being annotated with  JsonUnwrapped )
Create a wrapped representation of a collection to be added to the _embedded Resources of the containing resource It relies on the embedded resource being annotated with Relation and the collection of embedded objects being annotated with JsonUnwrapped )
public List<EmbeddedWrapper> toEmbeddable(Iterable<T> entities) {
      final EmbeddedWrappers wrapper = new EmbeddedWrappers(true); 
      final List<D> resources = toResources(entities);
      return resources.stream().map( a -> wrapper.wrap(a) ).collect(Collectors.toList());      
   }
public List < EmbeddedWrapper > toEmbeddable ( Iterable < T > entities ) { final EmbeddedWrappers wrapper = new EmbeddedWrappers ( true ) ; final List < D > resources = toResources ( entities ) ; return resources . stream ( ) . map ( a -> wrapper . wrap ( a ) ) . collect ( Collectors . toList ( ) ) ; }
Create a wrapped representation of a collection, to be added to the _embedded Resources of the containing resource
 It relies on the embedded resource being annotated with {@link Relation}
 and the collection of embedded objects being annotated with {@link JsonUnwrapped} (see {@link BookResource#setEmbeddeds()})
Create a wrapped representation of a collection to be added to the _embedded Resources of the containing resource It relies on the embedded resource being annotated with { @link Relation } and the collection of embedded objects being annotated with { @link JsonUnwrapped } ( see { @link BookResource#setEmbeddeds () } )
// Prefer collection     