Answer the question
In order to leave comments, you need to log in
How does Hibernate differ from spring Data and, in principle, database tools?
Hello, I was doing a project and it seemed to me that I used Spring Data for it, here is part of my pom
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
...
# ===============================
# JPA / HIBERNATE
# ===============================
spring.jpa.show-sql=true
spring.jpa.hibernate.ddl-auto=update
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
# Fix Postgres JPA Error:
# Method org.postgresql.jdbc.PgConnection.createClob() is not yet implemented.
spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults=false
2019-06-21 20:36:08.791 INFO 4640 --- [main] org.hibernate.Version : HHH000412: Hibernate Core {5.3.10.Final}
2019-06-21 20:36:08.797 INFO 4640 --- [ main] org.hibernate.cfg.Environment : HHH000206: hibernate.properties not found
2019-06-21 20:36:10.838 INFO 4640 --- [ main] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.0.4.Final}
2019-06-21 20:36:21.263 TRACE 4640 --- [ main] ohtype.spi.TypeConfiguration$Scope : Handling #sessionFactoryCreated from for TypeConfiguration
2019-06-21 20: 36:21.267 INFO 4640 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>5.2.18.Final</version>
</dependency>
Answer the question
In order to leave comments, you need to log in
JDBC is a database access standard, JPA is a persistence standard, Hibernate is an ORM that implements it, Spring Data is a repository mechanism, and a repository is an abstraction that sits a layer above ORM. That is, Spring Data uses Hibernate and Hibernate uses JDBC.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question