package com.cgi.eoss.ftep.persistence.dao;

import com.cgi.eoss.ftep.model.User;

import java.util.List;

public interface UserDao extends FtepEntityDao<User> {
    User findOneByName(String name);
    List<User> findByNameContainingIgnoreCase(String term);
}

@@ -73,16 +73,76 @@
 el.User;
+%0Aimport org.springframework.data.jpa.repository.EntityGraph;
 %0A%0Aimport
@@ -214,16 +214,62 @@
 User%3E %7B%0A
+    @EntityGraph(attributePaths = %7B%22groups%22%7D)%0A
     User

Fix lazy group loading