Hibernate Tutorials

Hibernate Simple Example Basics Insert Record

Hibernate Simple Example Note: This notes on Hibernate Example gives the basic steps of writing a Hibernate program. Explained in simple steps. Here, a Student record is inserted into database table using Hibernate. All the code is explained very clearly with the relevant XML files. The execution part of this program is given separately in …

Hibernate Simple Example Basics Insert Record Read More »

Hibernate Simple Program Step-by-step Execution

Hibernate Program Execution After creating a database connection, now let us execute our first program. In this program, we create a "Student" class with four fields (instance variables) sid, sname, smarks and sjoindate. The values given to these fields, at runtime from client program, should be entered in the Oracle database table "school". This is …

Hibernate Simple Program Step-by-step Execution Read More »

Create Database Connection Hibernate

Create Database Connection in Hibernate in MyEclipse 8.5 (on the name "SNRaoConnection") Note: For beginners, it is advised to read first Hibernate Tutorial for Beginners – JDBC vs Hibernate. We know Hibernate internally uses JDBC. So, give to the Hibernate all the particulars of the database to connect. This is what we are doing now …

Create Database Connection Hibernate Read More »

Hibernate Tutorial JDBC vs Hibernate

One regular answer from a budding programmer is it is very difficult to understand Hibernate, Spring and Struts. Is it the technology (framework) like that? Does tutorials do not simplify the learning? I admit that both. The concept of way2java.com from the beginning is "simplifying the complexity". I generally avoid much of technology buzz words …

Hibernate Tutorial JDBC vs Hibernate Read More »