I just learnt that it is better to use EntityManager for transaction management in a JEE web app.
However, many tutorials suggested that I have to create a persistence.xml file.
I’d like to know should I keep the hibernate.cfg.xml file now that I am going to create persistence.xml file and using Entity Manager (which I read is easier compared to hibernate SessionFactory)