em.persist(p1);
em.persist(p2);
em.persist(p3);
PersonMongoNameAnnotation personWithKey = new PersonMongoNameAnnotation();
personWithKey.setPersonId("111");
em.persist(personWithKey);
em.clear();
PersonMongoNameAnnotation p = findById(PersonMongoNameAnnotation.class, "1", em);
Assert.assertNotNull(p);
Assert.assertEquals("vivek", p.getPersonName());
Assert.assertEquals(Day.THURSDAY, p.getDay());
em.clear();
String qry = "Select p.personId,p.personName from PesonMongo p where p.personId >= 1";
Query q = em.createQuery(qry);
List<PersonMongoNameAnnotation> persons = q.getResultList();