Tuesday, March 29, 2016

Prevent scrolling of the page when pop-up is open


Solution#1 

On modal popup open add following css
body {
    overflow: hidden;
}

Saturday, September 19, 2015

Hibernate Configuration


Hibernate configuration properties :-


hibernate.dialect : allows Hibernate to generate SQL optimized for a particular relational database.

hibernate.show_sql : Write all SQL statements to console.
hibernate.format_sql : Pretty print the SQL in the log and console.
hibernate.connection.autocommit : Enables autocommit for JDBC pooled connections (it is not recommended)

Hibernate introduction


Hibernate ORM (Hibernate in short) is an object-relational mapping framework for the Java language, providing a framework for mapping an object-oriented domain model to a traditional relational database. Hibernate solves object-relational impedance mismatch problems by replacing direct persistence-related database accesses with high-level object handling functions.