KEMBAR78
Hibernate Vs Spring Data JPA | PDF
0% found this document useful (0 votes)
239 views3 pages

Hibernate Vs Spring Data JPA

Hibernate is a Java ORM tool that maps objects to database tables, while Spring Data JPA is an abstraction layer that reduces boilerplate code for data access objects. Spring Data JPA uses Hibernate as its default JPA provider and requires a JPA provider like Hibernate to function, since it builds on top of the Java Persistence API specification.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
239 views3 pages

Hibernate Vs Spring Data JPA

Hibernate is a Java ORM tool that maps objects to database tables, while Spring Data JPA is an abstraction layer that reduces boilerplate code for data access objects. Spring Data JPA uses Hibernate as its default JPA provider and requires a JPA provider like Hibernate to function, since it builds on top of the Java Persistence API specification.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Hibernate vs Spring

Data JPA
By Ramesh Fadatare (Java Guides)
Hibernate vs Spring Data JPA
Hibernate is a java based ORM tool that provides a framework for mapping application
domain objects to the relational database tables and vice versa.

Spring Data JPA is an abstraction layer on top of JPA to Reduce the amount of boilerplate code
required to implement data access object (DAO) layer.

Hibernate is a JPA provider ( JPA speci cation implementation). Spring Data JPA is not a JPA
provider. It simply "hides" the Java Persistence API (and the JPA provider) behind its
repository abstraction

Spring Data JPA uses Hibernate as a default JPA provider

Spring Data JPA cannot work without a JPA provider.


.

fi
.

Hibernate vs Spring Data JPA


Spring Data JPA is an abstraction layer on top of
Spring Data JPA JPA to Reduce the amount of boilerplate code
required to implement data access object (DAO)

JPA is just a speci cation that facilitates object-


JPA relational mapping to manage relational data in
Java applications

Hibernate Hibernate is a JPA Implementation


JDBC

Hibernate generates SQL query and


executes using JDBC
fi

You might also like