One to One Mapping XML based A unidirectional one-to-one association uses the relationship student and address <one-to-one name=”address”...
Author - Mathan Lal
Many to One Mapping XML based A unidirectional many-to-one association is the most common kind of unidirectional association. <many-to-one...
Hibernate Joined subclasses annotation: Each subclass can also be mapped to its own table. This is also called table-per-subclass mapping strategy. An...
The single table inheritance strategy maps all subclasses to only one database table. Each subclass declares its own persistent properties. Version and id...
Inheriatance Mapping Table per class annotation: A third option is to map only the concrete classes of an inheritance hierarchy to tables. This is called the...
Table per concrete class using implicit polymorphism: Three tables are required. There will not be any relationship between these tables. Dis-Advantage of this...
Hibernate Table per subclass: Three tables are required. The two subclass tables have primary key associations to the superclass table so the relational model...
Hibernate Table per class hierarchy: Columns declared by the subclasses, such as features, languages cannot have NOT NULL constraints.Exactly one table is...
Hibernate Create Criteria Projection List: Hibernatehave an easier way to group projections into single query formation. public static...
Hibernate Create Criteria Projections: Projections in hibernate helps to retrieve data based in SQL aggregate functions. avg(String propertyName) A property...
Hibernate Create Criteria Restrictions static Criterion between(String propertyName, Object lo, Object hi) Apply a "between" constraint to the named property c...
Named Query Annotation based: Hibernate Named Queries can also be configured as so called named queries using annotations or Hibernate mapping documents...
Maven Hibernate Annotation example This example gives you the list of dependency to add in maven for hibernate annotation application. Maven dependency list...
Maven Hibernate example This example gives you the list of dependency to add in maven for hibernate application Maven dependency list for hibernate Pom.xml...
Hibernate Annotation CRUD operation using Save, Update, Delete, Get, CreateCriteria. SessionDao.java package com.candidjava.hibernate.curd.dao; import org...
Hibernate CURD: Hibernate CURD operation using Save, Update, Delete, Get, CreateCriteria 1. SessionFactory SessionDao.java package com.candidjava.hibernate...
Hibernate Annotation: Hibernate configuration file Hibernate is designed to operate in many different environments and, as such, there is a broad range of...
Hibernate xml mapping: Getting started basic hibernate example to insert a record to Mysql database. This example contains, Hibernate configuration file...
CronTrigger CronTrigger is often more useful than SimpleTrigger, if you need a job-firing schedule that recurs based on calendar-like notions, rather than on...
SimpleTrigger SimpleTrigger should meet your scheduling needs if you need to have a job execute exactly once at a specific moment in time, or at a specific...