AccountRepository.java 565 Bytes
package org.legrog.entities;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.cdi.Eager;

import java.util.List;

@Eager
public interface AccountRepository extends JpaRepository<Account, Integer> {
    /**
     *
     * @param integers list of Ids for the Accounts we're looking for
     * @return Accounts looked for
     */
    List<Account> findByUserIdIn(List<Integer> integers);

    /**
     *
     * @return accounts that have a presentation
     */
    List<Account> findByPresentationIsNotNull();
}