Configure connection Pool Hibernate

Configure connection Pool Hibernate By definition connection pool is cache of database maintained connections where connections could be reused whenever future requests to database will be required. It is used to enhance performance of executing commands to the database. Every … Continue reading

Handle Transaction Hibernate example

Handle Transaction Hibernate example

Handle Transaction Hibernate example To handle transaction in hibernate it offers wrapper API called Transaction which translates calls into native transaction system of deployment environment. Below is demo java program to show transaction and exception handling:

Configure Logging Hibernate

Configure Logging Hibernate

Configure Logging Hibernate Summary: To configure logging in hibernate you need to have log4j.properties available in class path and below dependency in your pom.xml file.