I have problem with using EntityManager.persist(Object) method. Now when i get rid of other problems, by app work without Exception but object is not put in my data
EntityManager.persist(Object)
Try this:
em.getTransaction().begin(); em.persist(entity); em.getTransaction().commit();
PS: You should set a generation method for your ID as well.