Subversion Repositories SmartDukaan

Rev

Rev 35586 | Rev 35830 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35586 Rev 35828
Line 87... Line 87...
87
	private String hibernateFormatSql;
87
	private String hibernateFormatSql;
88
 
88
 
89
	@Value("${hibernate.jdbc.batch_size}")
89
	@Value("${hibernate.jdbc.batch_size}")
90
	private String hibernateBatchSize;
90
	private String hibernateBatchSize;
91
 
91
 
-
 
92
	@Value("${hibernate.order_inserts:true}")
-
 
93
	private String hibernateOrderInserts;
-
 
94
 
-
 
95
	@Value("${hibernate.order_updates:true}")
-
 
96
	private String hibernateOrderUpdates;
-
 
97
 
92
	// Mongo Config
98
	// Mongo Config
93
	@Value("${mongo.host}")
99
	@Value("${mongo.host}")
94
	private String mongoHost;
100
	private String mongoHost;
95
 
101
 
96
	@Value("${content.mongo.host}")
102
	@Value("${content.mongo.host}")
Line 134... Line 140...
134
		Properties dbProperties = new Properties();
140
		Properties dbProperties = new Properties();
135
		dbProperties.put(HIBERNATE_DIALECT, hibernateDialect);
141
		dbProperties.put(HIBERNATE_DIALECT, hibernateDialect);
136
		dbProperties.put(HIBERNATE_SHOW_SQL, hibernateShowSql);
142
		dbProperties.put(HIBERNATE_SHOW_SQL, hibernateShowSql);
137
		dbProperties.put(HIBERNATE_FORMAT_SQL, hibernateFormatSql);
143
		dbProperties.put(HIBERNATE_FORMAT_SQL, hibernateFormatSql);
138
		dbProperties.put(HIBERNATE_JDBC_BATCH_SIZE, hibernateBatchSize);
144
		dbProperties.put(HIBERNATE_JDBC_BATCH_SIZE, hibernateBatchSize);
139
		// HikariCP properties (Optional — Spring Boot auto-configures most)
145
		dbProperties.put("hibernate.order_inserts", hibernateOrderInserts);
140
		//dbProperties.put("hibernate.connection.provider_class", "org.hibernate.hikaricp.internal.HikariCPConnectionProvider");
146
		dbProperties.put("hibernate.order_updates", hibernateOrderUpdates);
141
		return dbProperties;
147
		return dbProperties;
142
	}
148
	}
143
 
149
 
144
	/**
150
	/**
145
	 * Configure Hibernate SessionFactory
151
	 * Configure Hibernate SessionFactory