Results 1 to 2 of 2

Thread: What are the advantages of JPA over Hibernate?

  1. #1

    Default What are the advantages of JPA over Hibernate?

    Hi All,
    I have been using Spring with Hibernate from several years and i am pretty much comfortable with these two technologies. Now i have to give a presentation on various ORM technologies like IBatis, Hibernate and JPA.

    I know some of the advantages and disadvantages of using both IBatis and Hibernate.

    Now i know that JPA is a specification and Hibernate implements it and also those two technologies looks like very similar.

    For ex: EntityManagerFactory is like SessionFactory
    EntityManager is like Session
    em.persists(obj) is like ses.save(obj)
    .......etc.

    Some of the advantages of JPA would be like Annotation support, vendor independence.

    Now my question is is there any additional benefits of using JPA over Hibernate?
    Thanks,
    K. Siva Prasad Reddy

  2. #2
    Join Date
    Sep 2008
    Posts
    22

    Default

    You've got the most of them, but the one I like is you're not married to Hibernate.

    EclipseLink (formerally TopLink) has made great strides and the EclipseLink specific features will be integrated into the JPA 2.0 spec. That's why I think it's a better choice than Hibernate if you're going to be doing JPA.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •