2 responses

  1. Thrawn
    November 12, 2018

    If you think, “we’re not likely to move away from Hibernate, so JPA isn’t important for us,” then think again.

    There are substantial differences between Hibernate 3.6 and Hibernate 4. There are even significant differences between Hibernate 5.1 and 5.2. Every time you upgrade, you’re effectively switching to a new persistence provider. By using a more stable interface like JPA, you can make upgrades much smoother.

    Reply

    • Cameron McKenzie
      June 26, 2019

      It’s worth noting that Hibernate is often months, if not years, ahead of the JPA spec in terms of new functionality. It took forever for JPA to include JODA time. Hibernate had it in a very early release.

      Use JPA, yes. But sometimes it’s incredibly helpful to dig into the HibernateSession and gain access to pieces of functionality that JPA simply doesn’t yet provide.

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top
mobile desktop