What is fraught with using entityManager directly without the involvement of the DAO Layer? Some "programmers" do not use DAO and persist, merge and select directly with entityManager. Saying what is the point of creating a DAO for simple CRUD operations. The answer is that if the base changes the answer - I just change the entity manager.

  • It is believed that entitymanager is one of the repository options. A repository is a competitor to dao. So it seems nothing is fraught with. - Sergey

0