Java.Hibernate.Beginner

What is Hibernate?

Which connection pool hibernte uses ?

Why do we use Hibernate instead of JDBC?

What is ORM?

What are the main advantages of using Hibernate?

What is a Session in Hibernate?

What is a SessionFactory?

What about Session Fatory in Spring Boot ?

What is a Configuration object in Hibernate?

What is a Hibernate mapping file?

What is an entity in Hibernate?

Explain Enity lifecycle

When i say save, is it saved to cache ?

How do you map a Java class to a database table in Hibernate?

What is first-level cache in Hibernate?

What is second-level cache in Hibernate?

Session lifecycle

Do i need openSession in SpringBoot ?

Does sessionFactory lives in sessionManager ?

What is query cache in Hibernate?

What difference to first level cache ?

Query cache is example of 2 level cache ?

How does first-level cache work by default?

How do you enable second-level caching?

What is hibernate.cfg.xml?

Can you configure Hibernate using annotations instead of XML?

What is the purpose of hibernate.properties?

How do you specify the database dialect in Hibernate?

What is a Hibernate Dialect?

How do you open a Hibernate session?

Whats is Stateless session ?

What is dirty checking ?

In which cases entity starts to be trackable ?

How do you close a Hibernate session?

How do you begin and commit a transaction in Hibernate?

What is the difference between save() and persist() in Hibernate?

Can leave the entity in a transient state if there’s no transaction (e.g., changes may not actually persist)

What happens if you don’t close a session in Hibernate?

How do you save an object in Hibernate?

What is better, save or persist ?

How do you update an object in Hibernate?

When i will get NonUniqueObjectException ? Give example

How do you delete an object in Hibernate?

When object becomes unattached ?

How do you retrieve an object by its ID?

What is the difference between load() and get() methods?

What is HQL (Hibernate Query Language)?

Do i need write select word or not ?

How do you create a basic HQL query?

Why use HQL ? What benefits ?

Explain Polymorphic queries and give examples

What is the Criteria API in Hibernate?

Explain how can i change criteria api in run time, what does it mean ?

What is the difference between HQL and SQL?

What is the difference between HQL and JPQL?

How can i understad that i use HQL or JPQL ?

How can you use native SQL queries in Hibernate?

What is one-to-one mapping in Hibernate?

OneToOne.Bidirectional

Explain what means bidirectional ? What’s difference to unidirectional ?

What does ibidirectional look like in data base and when i get profile.getUser(), is there any additional sql generated ?

What is one-to-many mapping in Hibernate?

Explain mappedBy and joinTables?

When i need @OneToMany without mappedBy ?

What is many-to-many mapping in Hibernate?

How do you implement a composite key in Hibernate?

Why do we need primary key ?

When primary key is composite, lets say from 2 columns how does it look ? give example

What is a primary key and how do you define it in Hibernate?

What is lazy loading in Hibernate?

What is eager fetching?

What is cascade in Hibernate?

What is pessimistic locking in Hibernate?

What is optimistic locking in Hibernate?

What are transient, persistent, and detached objects in Hibernate?

What is the purpose of the @Entity annotation?

What does the @Table annotation do?

What is the @Id annotation used for?

What types of @GeneratedValue we have ?

What does the @GeneratedValue annotation do?