ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Malashree <malashreep...@gmail.com>
Subject Re: how to do i hibernate configuration for Apache ignite database
Date Wed, 31 Oct 2018 08:05:00 GMT
https://apacheignite-mix.readme.io/docs/hibernate-l2-cache

Above given link is about hibernat-l2-cahe.


My hibernate configuration is using ignite database as given below


<beans:bean id="dataSource"
class="org.springframework.jdbc.datasource.DriverManagerDataSource"
		>
		<beans:property name="driverClassName"
value="org.apache.ignite.IgniteJdbcThinDriver" />
		<beans:property name="url" value="jdbc:ignite:thin://127.0.0.1/" />			
	</beans:bean>
	
	
	<beans:bean id="hibernate4AnnotatedSessionFactory"
		class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
		<beans:property name="dataSource" ref="dataSource" />
		<beans:property name="annotatedClasses">
			<beans:list>			
				<beans:value>com.tech.entities.Login
				</beans:value>	
				<beans:value>com.tech.entities.Domain
				</beans:value>	
				<beans:value>com.tech.entities.Partner
				</beans:value>				
			</beans:list>
		</beans:property>
		<beans:property name="hibernateProperties">
			<beans:props>
				<beans:prop key="hibernate.dialect">org.hibernate.dialect.MySQL5Dialect
				</beans:prop>
				<beans:prop key="hibernate.show_sql">true</beans:prop>
				<beans:prop key="hibernate.hbm2ddl.auto">update</beans:prop>
			</beans:props>
		</beans:property>
	</beans:bean>



Hibernate.dialect  i am using is org.hibernate.dialect.MySQL5Dialect , I
need the hibernate.dialect of apache ignite database to connect using
org.apache.ignite.IgniteJdbcThinDriver.






--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Mime
View raw message