0

why most of the peoples preferred to use in hibernate with JPA, what are the difference between usage of plain hibernate. please give me clarification on this.

ramana reddy
  • 41
  • 1
  • 1
  • 3
  • 1
    http://www.mkyong.com/hibernate/why-i-choose-hibernate-for-my-project/ – Mithat Konuk Nov 25 '16 at 09:07
  • 3
    Possible duplicate of [What's the difference between JPA and Hibernate?](http://stackoverflow.com/questions/9881611/whats-the-difference-between-jpa-and-hibernate) – Goro Nov 25 '16 at 09:09
  • i did not ask difference and usage of hibernate – ramana reddy Nov 25 '16 at 09:11
  • Im not sure clarification is technical, Hibernate historically was the first (open source) implementation (before JPA standard), had community etc. The Holy War between Hibernate, Eclipselink show performance are comparable, extra features too. In last year I prefer Eclipselink, but old project I made with Hibernate. In years of java8 and new date/time API Datanucleus has his renaissance (javax.time isn't compatible with JPA 2.1, Datanucleus implement it) – Jacek Cz Nov 25 '16 at 09:20
  • 1
    ......read the answer posted by @grsdev7 , Hibernate is just the Implementor of JPA , if you use plain Hibernate you might benefit by its custom features but if in some time in future you want to change the JPA implementor f.e. include Spring Data or EclipseLink , it will be a pain in the ass to refactor your project , but if you are depending in JPA and simply passing Hibernate with a proper config , you could easily modify which implementor will be binded above – AntJavaDev Nov 25 '16 at 09:22
  • Good designed application should be build over pure JPA 2.1 API without extensions, but all extensions are used for different reasons – Jacek Cz Nov 25 '16 at 09:23

0 Answers0