private void createReaderData() {
// ID start from 1 incremented by 1, because of in memory DB
// ID 1
EntityManager entityManager = entityManagerFactory.createEntityManager();
entityManager.getTransaction().begin();
entityManager.persist(new Reader("Emil", "Slovak", "8.9.1973", "Velke Cierne 23, SR",
"e.slovak@gmail.com", "0949 123 542", "aaa"));
// ID 2
entityManager.persist(new Reader("Karel", "Novak", "7.11.1981", "Grohova 2, Brno, CR",
"karel.novak@gmail.com", "735 945 248", "ccc"));
// ID 3
entityManager.persist(new Reader("Jack", "Black", "6.8.1972", "1234/1 5th Avenue, NY, USA",
"jack.black@gmail.com", "482 451 354", "ddd"));
entityManager.getTransaction().commit();
entityManager.close();
}