p2.save();
em.commit();
{
JpaQuery<Person> query = em.createQuery("select p from Person p", Person.class);
List<Person> list = query.getResultList();
assertTrue(list.size() == 2);
for ( Person res : list) {
System.out.println("RES: " + res.getId() + " " + res.getName());