3:29 am - Friday April 19, 2019

Tag Archives: mappings

Hibernate Inheritance mapping table per subclass Fetching Data Using Eclipse

Project Structure:                   JAR FILES:                       Book.java: package com.candidjava; import java.io.*; import java.util.*; public class Book { int id; String title; String author; double...

Hibernate Inheritance mapping table per subclass inserting Data Using Eclipse

Project Structure:                     JAR FILES:                         Book.java: package com.candidjava; import java.io.*; import java.util.*; public class Book { int id; String title; String author; double...

Hibernate Collection mapping Set Using Eclipse

Set:  Set doesn’t contain duplicates. <set name=”anyName” table=”tableName” cascade=”all”> <key column=”uniqueIdColumnName” /> <many-to-many column=”columnName”...

Hibernate collection mapping List Using Eclipse

List: List can contain duplicates. <list name=”listName” table=”tableName” cascade=”all”> <key column=”anyColumnName”></key> <list-index column=”anyColumnName”> ...

Hibernate Association Mapping Using One-To-One to Inserting Data

Project Structure:                         JAR Files:                       CREATE THE FOLLOWING JAVA FILES AND POJO CLASS FILES:         Address.java: package com.candidjava; public class Address implements...

Hibernate Association Mapping Using One-To-Many to Inserting Data

Project Structure:                       JAR Files:                     MainClass.java: package com.candidjava; import java.io.DataInputStream; import java.util.HashSet; import java.util.Set; import org.hibernate.*; import...

Hibernate Association Mapping Using Many-To-One to Inserting Data

Project Structure:                       JAR Files:       Address.java: package com.candidjava; public class Address implements java.io.Serializable { private long addressId; private String street; private String...