How to use Hibernate 4 with MySQL

Hibernate is an ORM (Object-Relation Mapping) tool for Java. It is used to persist and fetch data in the database via mapping the software objects to the relational model where properties of a class are mapped to a column in a table, class or an entity is mapped to table and instance of a class is a new record in a table.

This document explains the process of creating a simple Java application which uses Hibernate version 4, to store and retrieve data from MySQL database. It also explains how to create a simple MySQL  DB using XAMPP.

It is believed that the reader has a general idea of Eclipse IDE and Java.

Installing XAMPP and starting MySQL

There are various ways in which MySQL can be installed locally, namely:

I prefer using XAMPP, because it installs many other things like myPhpAdmin, Apache, FileZila, etc. and it’s free!!

Continue reading “How to use Hibernate 4 with MySQL”

Po Nee Po English Translation

Although, majority of the songs I listen to are either in Hindi or English, I do enjoy good music (definitely relative) in a lot of other Indian languages. Few days back, a friend told me about this Tamil song “Po Nee Po” sung  by “Mohit Chauhan” from the movie “3”(also has the over-hyped song “Kolaveri di”).

I have always been a Mohit Chauhan fan, but it was not just his singing that makes this a good song, Anirudh Ravichander has also done an awesome job with music. I thought other music lovers would also love to listen to and enjoy this song, and it sure is an added advantage if one knows the meaning of what he/she is listening to(makes it easier to get the feeling of the song).

So here’s an English translation of “Po nee po”, courtesy Malarvizhi Manoharan:-

Continue reading “Po Nee Po English Translation”