import javax.persistence.criteria.Root;
import javax.persistence.criteria.Subquery;
import java.util.List;
import java.util.Optional;
@SuppressWarnings("unused")
<BUG>public class UserRepositoryImpl implements UserRepositoryCustom {
@SuppressWarnings("SpringJavaAutowiredMembersInspection")</BUG>
@Autowired
<BUG>EntityManager entityManager;
@Override</BUG>
public List<User> findFollowings(User user,

import javax.persistence.criteria.Root;
import javax.persistence.criteria.Subquery;
import java.util.List;
import java.util.Optional;
@SuppressWarnings("unused")
public class UserRepositoryImpl implements UserRepositoryCustom {
private final JPAQueryFactory queryFactory;
@SuppressWarnings("SpringJavaAutowiredMembersInspection")
@Autowired
public UserRepositoryImpl(JPAQueryFactory queryFactory) {
this.queryFactory = queryFactory;
}
@Override
public List<User> findFollowings(User user,
