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 …
Hibernate
Polymorphic Association Mapping with Any Relationship in Hibernate
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
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
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)
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
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)
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
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 …