Manu has Published 5 Articles

What are various Inheritance mapping strategies available in Hibernate?

Manu

Manu

Updated on 26-Aug-2022 11:47:53

692 Views

There are three types of inheritance mapping strategies − Table per class hierarchy Table per concrete class Table per subclassIn this article, we will discuss table per class hierarchy. Table per class hierarchy In this, only a single table is created for inheritance mapping. Disadvantages of this approach ... Read More

How to Execute Batch Insert Update in Hibernate?

Manu

Manu

Updated on 26-Aug-2022 11:40:06

3K+ Views

In this article, we will see how we can execute batch insert/update in hibernate. Whenever we execute a sql statement, we do it by making a network call to the database. Now, if we have to insert 10 entries to our database table, then we have to make 10 network ... Read More

How to customize the Result of JPA Queries with Aggregation Functions?

Manu

Manu

Updated on 26-Aug-2022 11:34:40

2K+ Views

Most of the time when we use JPA queries, the result obtained is mapped to an object/particular data type. But When we use aggregate function in queries, handling the result sometimes require us to customize our JPA query. Let’s understand this with help of an example (Department, Employee) − Dept.java ... Read More

How to connect hibernate with MySQL Database?

Manu

Manu

Updated on 26-Aug-2022 11:28:09

6K+ Views

In this article, we will see how we can connect to MySQL database using an ORM (object relational mapping) framework like hibernate. First of all, we need to add maven dependency for hibernate in our pom.xml file − org.hibernate hibernate-core ... Read More

How does Hibernate Second Level Cache Works?

Manu

Manu

Updated on 26-Aug-2022 11:24:31

2K+ Views

Caching helps to reduce database network call, for executing queries. First level cache is linked with a session. It is implemented implicitly. First level cache exist only till the session object is there. Once session object is terminated/closed, there will be no cache objects. Second level cache works across multiple ... Read More

1
Advertisements