May
24
2015

difference between session.get() and session.load() method in hibernate

Difference between session.get and session.load method

In this post of hibernate we will see difference betwwen the two methods of fetching record from database. We will see difference between session.get() and session.load() method of fetching single record from DB. This is important question from interview prospective also. He basic difference in these two approaches is that session.get() method fetch record from […]

May
23
2015

org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save()

what is hibernate

In this post of hibernate we will see one more exception that often occure because some time we forget to specify genration stretagy of primary key column for record in Entity class and neither we give it manually. Here is simple example of student entity class we are trying to save without specifying genration stretagy of primary […]

May
19
2015

java Adapter class example

adpter class example in java

Hi in this post of core java tutorial i will discuss about Adapter class in java. Why adpter class is used. Adpter is design pattern in java. Adpter is somthing that connect two component. Adapter is a pattern that provides default (often empty) implementation of interface or abstract class. . It is useful because very often […]

Apr
13
2015

Example One to one mapping

one to one mapping

In this tutorial i will explain how establish relationship between two entity object. In last tutorials we have seen how to save entity object when there is a value object inside entity object or collection of value object inside entity object. In this tutorial we will learn how to establish one to one relationship between two […]

Pages:1234»