Subversion Repositories SmartDukaan

Rev

Rev 35830 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35830 Rev 35832
Line 21... Line 21...
21
import org.apache.logging.log4j.LogManager;
21
import org.apache.logging.log4j.LogManager;
22
import org.apache.logging.log4j.Logger;
22
import org.apache.logging.log4j.Logger;
23
import org.hibernate.SessionFactory;
23
import org.hibernate.SessionFactory;
24
import org.springframework.beans.factory.annotation.Autowired;
24
import org.springframework.beans.factory.annotation.Autowired;
25
import org.springframework.beans.factory.annotation.Value;
25
import org.springframework.beans.factory.annotation.Value;
26
import org.springframework.context.annotation.*;
26
import org.springframework.context.annotation.Bean;
-
 
27
import org.springframework.context.annotation.ComponentScan;
-
 
28
import org.springframework.context.annotation.Configuration;
-
 
29
import org.springframework.context.annotation.Primary;
27
import org.springframework.core.env.Environment;
30
import org.springframework.core.env.Environment;
28
import org.springframework.jdbc.datasource.DriverManagerDataSource;
31
import org.springframework.jdbc.datasource.DriverManagerDataSource;
29
import org.springframework.orm.hibernate5.HibernateTransactionManager;
32
import org.springframework.orm.hibernate5.HibernateTransactionManager;
30
import org.springframework.orm.hibernate5.LocalSessionFactoryBuilder;
33
import org.springframework.orm.hibernate5.LocalSessionFactoryBuilder;
31
import org.springframework.transaction.annotation.EnableTransactionManagement;
34
import org.springframework.transaction.annotation.EnableTransactionManagement;
Line 43... Line 46...
43
import java.util.Properties;
46
import java.util.Properties;
44
 
47
 
45
@Configuration
48
@Configuration
46
@EnableTransactionManagement
49
@EnableTransactionManagement
47
@ComponentScan("com.spice.profitmandi.*")
50
@ComponentScan("com.spice.profitmandi.*")
48
@PropertySource(value = {"classpath:META-INF/env.properties"}, ignoreResourceNotFound = true)
-
 
49
public class DBConfig {
51
public class DBConfig {
50
 
52
 
51
	private static final Logger LOGGER = LogManager.getLogger(DBConfig.class);
53
	private static final Logger LOGGER = LogManager.getLogger(DBConfig.class);
52
 
54
 
53
	// Hibernate Property Keys
55
	// Hibernate Property Keys