Which are the differences/similarities between hibernate and other frameworks or specifications?

后端 未结 4 1840
情书的邮戳
情书的邮戳 2021-01-03 16:59

I want to know the differences/similarities between Hibernate and simple persistence in Java EE 5?

I\'m not clear if Hibernate implements Java EE 5 persistence imple

4条回答
  •  走了就别回头了
    2021-01-03 17:30

    Slightly off topic but JPA implies a "session orientated" architecture. That is your beans are attached/detached to an EntityManager and you persist/merge/flush the entityManager.

    If you are looking for a "sessionless" approach to ORM (no attached/detached persist/merge/flush) then you can also look at Ebean ORM which also uses JPA Annotations for mapping. You could also describe this as "Ebean provides automatic management of the Persistence Context".

提交回复
热议问题