@@ -0,0 +1,3014 @@
+package com.hida.configuration;%0A%0Aimport java.util.Properties;%0A%0Aimport javax.sql.DataSource;%0A%0Aimport org.hibernate.SessionFactory;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.context.annotation.Bean;%0Aimport org.springframework.context.annotation.ComponentScan;%0Aimport org.springframework.context.annotation.Configuration;%0Aimport org.springframework.context.annotation.PropertySource;%0Aimport org.springframework.core.env.Environment;%0Aimport org.springframework.jdbc.datasource.DriverManagerDataSource;%0Aimport org.springframework.orm.hibernate4.HibernateTransactionManager;%0Aimport org.springframework.orm.hibernate4.LocalSessionFactoryBean;%0Aimport org.springframework.transaction.annotation.EnableTransactionManagement;%0A%0A/**%0A * missing javadocs%0A *%0A */%0A@Configuration%0A@EnableTransactionManagement%0A@ComponentScan(%7B%22com.hida.configuration%22%7D)%0A@PropertySource(value = %7B%22classpath:minter_config.properties%22%7D)%0Apublic class HibernateConfiguration %7B%0A%0A    /**%0A     * missing javadocs%0A     */%0A    @Autowired%0A    private Environment environment;%0A%0A    /**%0A     * missing javadocs%0A     *%0A     * @return%0A     */%0A    @Bean%0A    public LocalSessionFactoryBean sessionFactory() %7B%0A        LocalSessionFactoryBean sessionFactory = new LocalSessionFactoryBean();%0A        sessionFactory.setDataSource(dataSource());%0A        sessionFactory.setPackagesToScan(new String%5B%5D%7B%22com.hida.model%22%7D);%0A        sessionFactory.setHibernateProperties(hibernateProperties());%0A        return sessionFactory;%0A    %7D%0A%0A    /**%0A     * missing javadocs%0A     *%0A     * @return%0A     */%0A    @Bean%0A    public DataSource dataSource() %7B%0A        DriverManagerDataSource dataSource = new DriverManagerDataSource();%0A        dataSource.setDriverClassName(environment.getRequiredProperty(%22jdbc.driverClassName%22));%0A        dataSource.setUrl(environment.getRequiredProperty(%22jdbc.url%22));%0A        dataSource.setUsername(environment.getRequiredProperty(%22jdbc.username%22));%0A        dataSource.setPassword(environment.getRequiredProperty(%22jdbc.password%22));%0A        return dataSource;%0A    %7D%0A%0A    /**%0A     * missing javadocs%0A     *%0A     * @return%0A     */%0A    private Properties hibernateProperties() %7B%0A        Properties properties = new Properties();%0A        properties.put(%22hibernate.dialect%22, environment.getRequiredProperty(%22hibernate.dialect%22));%0A        properties.put(%22hibernate.show_sql%22, environment.getRequiredProperty(%22hibernate.show_sql%22));%0A        properties.put(%22hibernate.format_sql%22, environment.getRequiredProperty(%22hibernate.format_sql%22));%0A        properties.put(%22hibernate.hbm2ddl.auto%22, environment.getRequiredProperty(%22hibernate.hbm2ddl.auto%22));%0A        return properties;%0A    %7D%0A%0A    /**%0A     * missing javadocs%0A     *%0A     * @param s%0A     * @return%0A     */%0A    @Bean%0A    @Autowired%0A    public HibernateTransactionManager transactionManager(SessionFactory s) %7B%0A        HibernateTransactionManager txManager = new HibernateTransactionManager();%0A        txManager.setSessionFactory(s);%0A        return txManager;%0A    %7D%0A%7D%0A

Move HiberateConfiguration into configuration