question: public static List < History > findHistoryByJob ( EntityManager em , JPAEntity job , BigInteger limit ) { requireArgument ( em != null , "Entity manager cannot be null." ) ; requireArgument ( job != null , "The job cannot be null." ) ; TypedQuery < History > query = em . createNamedQuery ( "History.findByJob" , History . class ) ; if ( limit != null ) { query . setMaxResults ( limit . intValue ( ) ) ; } try { query . setParameter ( "entity" , job ) ; return query . getResultList ( ) ; } catch ( NoResultException ex ) { return new ArrayList < History > ( 0 ) ; } }
target:  Finds all history records for the given job.