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

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

import java.util.List;

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();
}