Hibernate is most popular Object Relational Mapping (ORM) tool with Java. It helps developer to focus more on building business logic. Java is made to build applications more quickly and in more standard ways. This tool helps to communicate the java application with various RBDMS systems. It works as layer between java application and database. If ...

Read More

The main advantage of ORM like hibernate is that it shields developers from messy SQL. Apart from this, ORM provides following benefits:  Improved productivity High-level object-oriented API Less Java code to write No SQL to write Improved performance  Sophisticated caching  Lazy loading  / Eager loading Improved maintainability  A lot less code to...

Read More

There are five core interfaces used in just about every Hibernate application. Using following interfaces, you can store and retrieve persistent objects and control transactions. Session interface SessionFactory interface Configuration interface   Transaction interface Query and Criteria interface

Read More

The Session interface is the primary interface used by Hibernate applications. It is a single-threaded, short-lived object representing a conversation between the application and the persistent store. Session is not thread safe so we should not share same session between multiple threads. It allows you to create query objects to retrieve persistent...

Read More

Application obtains Session instances from a SessionFactory. There is typically a single SessionFactory for the whole application created during application initialization. The SessionFactory caches generate SQL statements and other mapping metadata that Hibernate uses at runtime. It also holds cached data that has been read in one unit of work and...

Read More

There are four levels defined for ORM quality as below : Pure Relational Mapping - The entire application, including the user interface, is designed around the relational model and SQL-based relational operations. Light Object Mapping - The entities are represented as classes that are mapped manually to the relational tables. The code is hidden fro...

Read More

The inverse keyword is always declare in one-to-many and many-to-many relationship (many-to-one doesn’t has inverse keyword), it means which side is responsible to take care of the relationship. In Hibernate, only the “owner of relationship” should maintain the relationship, and the inverse keyword is created to defines which side is the owner to m...

Read More

Introduction: For Detailed introduction on Hibernate please go through this link In this tutorial we will cover the basic of hibernate using the below : Maven for dependency Management Java 7  Hibernate 4.3.0 Mysql 5.7.16 Creating project using maven : Open command line and type mvn archetype:generate and choose  mvn archetype:generate       -Dgrou...

Read More

FOLLOW US ON LinkedIn



Explore Tutu'rself