@ Override @ Transactional ( readOnly = true ) public JpaEntry getEntry ( long entryId ) { Validate . isTrue ( entryId > 0 , "Invalid entryId: " + entryId ) ; JpaEntry rslt = entityManager . find ( JpaEntry . class , entryId ) ; return rslt ; }
Search for a JpaEntry with the specified Id . If the entry exists in the persistence context it is returned ; otherwise null is returned .