<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
	<session-factory>
		<!-- Added user “miracleo_anand” with password “Anand@2014”. User “miracleo_anand” 
			was added to the database “miracleo_inspiration”. -->

		<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
 
			
		    <property name="hibernate.connection.url">jdbc:mysql://localhost:3306/anandmun_eassessment</property> 
			<property name="hibernate.connection.username">anandmun_anand</property> 
			<property name="hibernate.connection.password">Anand@2014</property>   
  
	 	<!-- <property name="hibernate.connection.url">jdbc:mysql://localhost/eassessment</property> 
		<property name="hibernate.connection.username">root</property> 
		<property name="hibernate.connection.password">root</property>  -->

		<property name="hibernate.connection.show_sql">true</property>
		<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
		<property name="connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property>
		<!--// If this is a number greater than 0, C3P0 will test all idle, pooled 
			but unchecked-out connections, every this number of seconds -->
		<!--// Set this to something below your MySQL wait_timeout -->
		<property name="hibernate.c3p0.acquire_increment">1</property>
		<property name="hibernate.c3p0.idle_test_period">100</property> <!-- seconds -->
		<property name="hibernate.c3p0.max_size">20</property>
		<property name="hibernate.c3p0.max_statements">0</property>
		<property name="hibernate.c3p0.maxStatementsPerConnection">100</property>
		<property name="hibernate.c3p0.min_size">0</property>
		<!--<property name="hibernate.c3p0.timeout">100</property> -->
		<!--// a query used to test connections -->
		<property name="hibernate.c3p0.preferredTestQuery">select 1;</property>

		<property name="format_sql">false</property>
		<property name="use_sql_comments">false</property>
		<property name="hibernate.hbm2ddl.auto">update</property>
		<property name="hibernate.current_session_context_class">managed</property>

		<!-- Mapping files -->
		<mapping class="com.eassessment.pojo.User" />
		<mapping class="com.eassessment.pojo.Topics" />
		<mapping class="com.eassessment.pojo.Questions" />
		<mapping class="com.eassessment.pojo.Options" />
		<mapping class="com.eassessment.pojo.AnswerMemo" />
		
	</session-factory>
</hibernate-configuration>