Browsing articles in "hibernate"
Apr
15
2015

One to many and many to one mapping

many to one relatioship dept and course

One to many relationship In this post we will see about one to many . In this  scenario imagine that one student can opt more than one course. Another example we can take student and instructor relationship . One instructor can advise many student. Another example that we will see in this post is course […]

Apr
13
2015

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 […]

Apr
2
2014

hibernate web application example

Registarion and login

This is simple example of login and registration using hibernate with jsp.Although it is self explanatory but still i have explain every step . Open eclipse > New project >Others >Web >Dynamic Web Project   Give your project name >Select  Target Runtime > Next > Finish   Before begin with the program you need to […]

Mar
23
2014

Simple hibernate program

hibernate example

This is simple hibernate example of desktop application .Add the hibernate jar  by creating new library named as hibernate and also add your database jdbc driver jar as external jar. Also add the hibernate.cfg.xml file in your src folder. Note hibernate.cfg.xml file should not be inside package.it should be in in parallel to packages. The directory […]

Pages:12»