package com.cgi.eoss.ftep.api.projections;

import com.cgi.eoss.ftep.model.Group;
import org.springframework.data.rest.core.config.Projection;

/**
 * <p>Abbreviated representation of a User entity, for embedding in REST responses.</p>
 */
@Projection(name = "shortGroup", types = {Group.class})
public interface ShortGroup extends EmbeddedId {
    String getName();
    ShortUser getOwner();
}

@@ -75,16 +75,75 @@
 .Group;%0A
+import org.springframework.beans.factory.annotation.Value;%0A
 import o
@@ -428,25 +428,116 @@
    S
-hortUser getOwner
+tring getDescription();%0A    ShortUser getOwner();%0A    @Value(%22#%7Btarget.members.size()%7D%22)%0A    Integer getSize
 ();%0A

Add Group description and size to excerpt projection