Browsing articles in "hibernate"
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 […]

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:12»