I have question about usage of EntityManager. I've read that is not wise, opening and closing an EntityManager for every simple database call in a single thread!
Is it better to have one EntityManager per all DAO methods or one EntityManager per DAO method?