By Roytuts · Hibernate
There are mainly six important tags or properties for hibernate configuration file. Hibernate configuration file naming convention is generally hibernate.cfg.xml and it is generally placed in the classpath. This can…
By Roytuts · Hibernate
Introduction In this tutorial I will show you how to call stored procedure using Hibernate framework. I will show you both XML and Annotation based configurations for calling stored procedure.…
By Roytuts · Hibernate
Hibernate comes with a provision to create tables and populate them as per the Java classes involved in inheritance. Hibernate offers basically three different approaches to map hierarchical classes –…
By Roytuts · Hibernate
Introduction I am going to give explanation and example on hibernate table per class hierarchy. Let’s consider you have a base class named Person and two derived classes – Student…
By Roytuts · Hibernate
Introduction In Table Per SubClass Hierarchy there will be the number of classes equals to the number of tables in the database. If you save the Student class object, hibernate…
By Roytuts · Hibernate
In Table Per Concrete Class Hierarchy will have the number of tables in the database equals to the number of derived classes. Once you save the derived class object, then…
By Roytuts · Hibernate
Introduction In this tutorial I will tell you different types of caches in Hibernate framework. Hibernate is an ORM (Object Relational Mapping) framework. Hibernate uses two different caches for objects:…
By Roytuts · Hibernate
Introduction Criteria is a simplified API for retrieving entities by composing Criterion objects. This is a very convenient approach for functionality like “search” screens where there is a variable number…
By Roytuts · Spring AOP
With this tutorial we will see how to use Aspect Oriented Programming in Spring Framework. AOP is used in the Spring Framework to provide declarative enterprise services. It is also…
By Roytuts · Spring MVC
Introduction This tutorial shows an example on how MVC (Model, View, Controller) works in Spring framework. In this tutorial you will also find how JDBC (Java Database Connectivity API) works…