Hibernate / Hibernate 7 Basics Interview Questions
How do you configure Hibernate 7 with Maven?
Hibernate 7 can be used standalone or as the JPA provider in Spring Boot 4. Key dependencies:
<!-- Standalone --> <dependency> <groupId>org.hibernate.orm</groupId> <artifactId>hibernate-core</artifactId> <version>7.4.0.Final</version> </dependency> <!-- Spring Boot 4 (managed version) --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> <!-- Includes hibernate-core 7.x transitively --> </dependency> <!-- Annotation processor for static metamodel --> <dependency> <groupId>org.hibernate.orm</groupId> <artifactId>hibernate-processor</artifactId> <version>7.4.0.Final</version> <scope>provided</scope> </dependency>
What artifact provides the core Hibernate 7 ORM functionality?
What is the hibernate-processor artifact used for?
More Related questions...