Category Archives: Без рубрики

Java.Hibernate.Beginner.What is a Hibernate mapping file?

✅ What is a Hibernate mapping file? Answer:A Hibernate mapping file is an XML file (usually ending with .hbm.xml) that tells Hibernate how to map a Java class to a database table, and how the class’s fields map to table … Continue reading →

Posted in Без рубрики | Comments Off on Java.Hibernate.Beginner.What is a Hibernate mapping file?

Java.Hibernate.Beginner.What is a Configuration object in Hibernate?

✅ What is a Configuration object in Hibernate? Answer:A Configuration object in Hibernate is a class that loads and holds all the settings, mappings, and properties required to bootstrap Hibernate and build a SessionFactory. 🔹 Key responsibilities of Configuration: Reads … Continue reading →

Posted in Без рубрики | Comments Off on Java.Hibernate.Beginner.What is a Configuration object in Hibernate?

Java.Hibernate.Beginner.What about Session Fatory in Spring Boot ?

In Spring Boot, you don’t usually build or manage a SessionFactory manually. Instead, Spring Boot autoconfigures Hibernate and manages the SessionFactory for you, thanks to its integration with Spring Data JPA or the Hibernate starter. 🔹 How it works in … Continue reading →

Posted in Без рубрики | Comments Off on Java.Hibernate.Beginner.What about Session Fatory in Spring Boot ?

Java.Hibernate.Beginner.What is a SessionFactory?

✅ What is a SessionFactory in Hibernate? Answer:A SessionFactory is a heavyweight, thread-safe Hibernate object responsible for: Creating Session instances, which are the primary interface for interacting with the database. Managing configuration settings like database connection details, entity mappings, and … Continue reading →

Posted in Без рубрики | Comments Off on Java.Hibernate.Beginner.What is a SessionFactory?

Java.Hibernate.Beginner.What is a Session in Hibernate?

Excellent — here’s a clear, interview-level answer: ✅ What is a Session in Hibernate? Answer:A Session in Hibernate is the primary interface between your Java application and the database. It represents a single unit of work (a conversation with the … Continue reading →

Posted in Без рубрики | Comments Off on Java.Hibernate.Beginner.What is a Session in Hibernate?

Java.Hibernate.Beginner.What are the main advantages of using Hibernate?

✅ What are the main advantages of using Hibernate? Answer:Hibernate offers several major advantages over plain JDBC or manual SQL, making it one of the most popular Java persistence frameworks: 🔹 1. Reduces Boilerplate Code Automates most CRUD operations — … Continue reading →

Posted in Без рубрики | Comments Off on Java.Hibernate.Beginner.What are the main advantages of using Hibernate?

Java.Hibernate.Beginner.What is ORM?

ORM stands for Object-Relational Mapping — a programming technique that automatically maps objects in your application code to rows in a relational database table, and vice versa. 🔹 How it works: You define Java (or any language’s) classes called entities, … Continue reading →

Posted in Без рубрики | Comments Off on Java.Hibernate.Beginner.What is ORM?

Java.Hibernate.Beginner.Why do we use Hibernate instead of JDBC?

Excellent — this is a classic beginner question, and here’s a strong interview-level answer: ✅ Why do we use Hibernate instead of JDBC? Answer:Hibernate offers a higher-level, object-oriented way of interacting with databases compared to plain JDBC, which requires a … Continue reading →

Posted in Без рубрики | Comments Off on Java.Hibernate.Beginner.Why do we use Hibernate instead of JDBC?

Java.Hibernate.Beginner.Which connection pool hibernte uses ?

✅ How does Hibernate handle database connections? Does it use HikariCP under the hood? Answer:🔹 How Hibernate manages connections: Hibernate doesn’t open raw database connections manually each time you run a query. Instead, it uses a connection pool to efficiently … Continue reading →

Posted in Без рубрики | Comments Off on Java.Hibernate.Beginner.Which connection pool hibernte uses ?

Java.Hibernate.Beginner.What is Hibernate?

Hibernate is an Object-Relational Mapping (ORM) framework for Java that lets developers map Java objects (entities) to relational database tables. It abstracts away the boilerplate JDBC code needed for CRUD operations. Provides a powerful query language (HQL) and Criteria API. … Continue reading →

Posted in Без рубрики | Comments Off on Java.Hibernate.Beginner.What is Hibernate?