CodesJava

Easy learning with example program codes

second level cache in hibernate

Second level cache is implemented by session factory objects. It is not enabled by default. It uses common cache for all session objects i.e. available for all … Read More

caching in hibernate

Caching is a way to improve the performance of an application.  It uses buffer memory to stores recently used data from database to minimize the database hits.… Read More

n+1 problem in hibernate

Let us understand n+1 problem with a simple example. Suppose we have collection of students and every student have collection subjects. To get all students and all … Read More

lazy vs eager loading in hibernate

Eager loading
Hibernate provides the facility of parent child relationship between entities. There may be the case when one parent record can have multiple child records. By … Read More

eager loading in hibernate

Hibernate provides the facility of parent child relationship between entities. There may be the case when one parent record can have multiple child records. By default, in … Read More

Lazy loading in hibernate

As we know that hibernate supports inheritance which means records with parent child relationship. Consider the situation when one parent have multiple child records. In this case … Read More

Dialects in hibernate

Dialect provides the way to identify the language used by the database for communication.
DB2 dialect in hibernate

org.hibernate.dialect.DB2Dialect

DB2 AS/400 dialect in hibernate

org.hibernate.dialect.DB2400Dialect

DB2 OS390 Read More

use of dialect in hibernate

Dialect refers to the variant of a language. Hibernate can be used with different kind of database like Oracle or MySQL. Every database have different way of … Read More

Eclipse maven hibernate project

Eclipse maven hibernate project:

Eclipse provides m2eclipse plugin to integrate Maven and Eclipse together.

Steps to create maven java project in eclipse:

  1. In eclipse, click on File
Read More
Sign Up/ Sign In
Ask a Question


Copyright © 2018 CodesJava DMCA.com Protection Status SiteMap Reference: Java Wiki