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

import com.cgi.eoss.ftep.model.User;
import org.springframework.data.rest.core.config.Projection;
import org.springframework.hateoas.Identifiable;

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

@@ -39,16 +39,53 @@
 tions;%0A%0A
+import com.cgi.eoss.ftep.model.Role;%0A
 import c
@@ -475,10 +475,30 @@
 mail();%0A
+    Role getRole();%0A
 %7D%0A

Add role to API ShortUser projection