How to configure session factory to connect to a DB2 datasource with Hibernate

A really brief intro Hibernate is one of the most incredible Object Relational Mapper (ORM engine) that we have to make scalable and secure ┬áJava Enterprise Applications. Today, I going to explain you, how to configure your session factory field by field in order to have a basic connection to a datasource (in this case…