Java is a set of computer software and specifications developed by Sun Microsystems, which was later acquired by the Oracle Corporation, that provides a system for developing application software and deploying it in a cross-platform computing environment. Java is used in a wide variety of computing platforms from embedded devices and mobile phones to enterprise servers and supercomputers.

Spring Logo

Spring Framework

The Spring Framework provides a comprehensive programming and configuration model for modern Java-based enterprise applications - on any kind of deployment platform. A key element of Spring is infrastructural support at the application level: Spring focuses on the "plumbing" of enterprise applications so that teams can focus on application-level business logic, without unnecessary ties to specific deployment environments.

Hibernate Logo

Hibernate Framework

Hibernate ORM is an object-relational mapping framework for the Java language. It provides a framework for mapping an object-oriented domain model to a relational database.

Tuesday, June 3, 2014

Exception in thread "main" org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set

Exception in thread "main" org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set
    at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.determineDialect(
    at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.buildDialect(
    at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(
    at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(
    at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(
    at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(
    at org.hibernate.cfg.Configuration.buildTypeRegistrations(
    at org.hibernate.cfg.Configuration.buildSessionFactory(
    at com.ranga.MultiTenancyDemo.main(


// Create the SessionFactory from hibernate.cfg.xml
        Configuration configuration = new Configuration();
         System.out.println("Hibernate Configuration loaded.");
        //apply configuration property settings to StandardServiceRegistryBuilder
        serviceRegistry = new StandardServiceRegistryBuilder().applySettings(
        System.out.println("Hibernate serviceRegistry created.");
        sessionFactory = configuration.buildSessionFactory(serviceRegistry);
        System.out.println("Hibernate sessionFactory object created.");    


After creation of Configuration object, we need to call the         configuration.configure("hibernate.cfg.xml"); method.