em.persist seems doesn't persist data on postgreSQL db
- by Mario
I've got a simple java main which must write bean data on a PostgreSQL database. I use Entity manager to persist or update object. I use hibernate and toplink driver connection which are specified in persistence.xml file.
When I call em.persist(obj), nothing is saved on database, I don't know why. here is my simple code:
private static void…