Primefaces + Spring + Hibernate Integration Example

primefaces-thumbnail

This tutorial is continuation to my first tutorial on primefaces. i.e, PrimeFaces Hello world example. Before digging more about Primefaces components and its features, let’s have a good project template solution for doing all the CRUD operations by integrating Primefaces with Spring and Hibernate framework’s. This combination is recommended because SpringSource suggests PrimeFaces to be used […]

Polymorphic Association Mapping with Any Relationship in Hibernate

hibernate_icon

Polymorphic association, supported by Hibernate, is the solution of such mapping requirement as an instance of entity needs to be associated with one of multiple possible entities. This can be implemented with Any relationship. In this relationship, the table holding the relationship would have two columns for relationship management. One to identify the primary key […]

Implicit Polymorphism in Hibernate

hibernate_orm

Implicit polymorphism in Hibernate is one of the inheritance strategies supported in Hibernate. Implicit polymorphism means if a class or interface is used in HQL, criteria or named queries, hibernate fetches the records from the table mapped to the used class along with all the tables mapped to its subclasses, at any hierarchy level. This […]

Hibernate Many-To-Many Mapping Example Using Annotations

hibernate_icon

In this tutorial we will write a simple Java project to demonstrate Hibernate Many to Many Mapping using Java Annotations. We will first create a Java project using Maven and then will add Hibernate on it. If you have any questions, please post it in the comments section. If you are interested in receiving the […]

Hibernate Many-To-Many Mapping Example (XML Mapping)

hibernate_icon

In this tutorial we will write a simple Java project to demonstrate Hibernate Many to Many Mapping using XML mapping. We will first create a Java project using Maven and then will add Hibernate on it. If you have any questions, please post it in the comments section. If you are interested in receiving the […]

Hibernate One-To-Many Mapping Example Using Annotations

hibernate_icon

In this tutorial we will write a simple Java project to demonstrate Hibernate one to Many Mapping using Java Annotations. In my previous article I have explained Hibernate one to Many Mapping using XML. The main difference between these two examples would be the hibernate configuration files and annotations. Otherwise both the articles trying the same […]

Hibernate One-To-Many Mapping Example (XML Mapping)

hibernate_icon

In this tutorial we will write a simple Java project to demonstrate Hibernate one to Many Mapping using XML mapping. We will first create a Java project using Maven and then will add Hibernate on it. If you have any questions, please post it in the comments section. If you are interested in receiving the […]

Hibernate One-To-One Mapping Example Using Java Annotations

hibernate_icon

In this tutorial we will write a simple Java project to demonstrate Hibernate one to one Mapping using Java Annotations. We will first create a Java project using Maven and then will add Hibernate on it. If you have any questions, please post it in the comments section. If you are interested in receiving the […]

Hibernate One-To-One Mapping(XML mapping)

hibernate_icon

In this tutorial we will write a simple Java project to demonstrate Hibernate one to one Mapping. We shall use HSQL as the database and Maven for creating the project and making it compatible with eclipse. We will first create a Java project using Maven and then will add Hibernate on it. HSQL database is […]

Hibernate, Maven and HSQL – Example Project (Using Annotations)

hibernate_icon

In this tutorial we will write a simple Java project to demonstrate Hibernate, HSQL and Maven using Java 5 Annotations. For this we will use our previous example in the post Hibernate, Maven and HSQL – Example Project (XML Mapping)) as base and convert it from XML Mapping to Annotation. HSQL database is used to […]