query.where(criteriaBuilder.and(predicate1, predicate2));
TypedQuery<JPAObject> typedQuery = entityManager.createQuery(query);
List<JPAObject> resultList = typedQuery.getResultList();
JPAHead head = new JPAHead();
head.setJPAObjects(resultList);
head.setTimestamp(timestamp);
return head;
}
}