<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE hibernate-configuration (View Source for full doctype...)>
- <hibernate-configuration>
- <session-factory>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="connection.url">jdbc:mysql://localhost:3306/preference?autoReconnect=true</property>
<property name="connection.username">root</property>
<property name="connection.password" />
<property name="c3p0.minPoolSize">3</property>
<property name="c3p0.maxPoolSize">200</property>
<property name="c3p0.maxIdleTime">30</property>
<property name="c3p0.maxStatements">100</property>
<property name="c3p0.acquireIncrement">1</property>
<property name="c3p0.initialPoolSize">3</property>
<property name="c3p0.idleTestPeriod">0</property>
<property name="c3p0.timeout">30</property>
- <!-- ### Apache DBCP Connection Pool ###
-->
- <!-- connection pool
-->
- <!-- <property name="dbcp.maxActive">10</property>
<property name="dbcp.whenExhaustedAction">1</property>
<property name="dbcp.maxWait">20000</property>
<property name="dbcp.maxIdle">10</property>
-->
- <!-- prepared statement cache
-->
- <!-- <property name="dbcp.ps.maxActive">10</property>
<property name="dbcp.ps.whenExhaustedAction">1</property>
<property name="dbcp.ps.maxWait">20000</property>
<property name="dbcp.ps.maxIdle">10</property>
-->
- <!-- optional query to validate pooled connections:
-->
- <!-- <property name="dbcp.validationQuery">select 1</property>
<property name="dbcp.testOnBorrow">true</property>
<property name="dbcp.testOnReturn">true</property>
-->
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<mapping resource="com/scnf/model/Utilisateur.hbm.xml" />
<mapping resource="com/scnf/model/Profil.hbm.xml" />
<mapping resource="com/scnf/model/Agence.hbm.xml" />
<mapping resource="com/scnf/model/UtilisateurHasProfil.hbm.xml" />
<mapping resource="com/scnf/model/Reseau.hbm.xml" />
<mapping resource="com/scnf/model/Typologie.hbm.xml" />
<mapping resource="com/scnf/model/Region.hbm.xml" />
<mapping resource="com/scnf/model/Mail.hbm.xml" />
<mapping resource="com/scnf/model/MailDestinataire.hbm.xml" />
<mapping resource="com/scnf/model/ContactPerso.hbm.xml" />
<mapping resource="com/scnf/model/Evenement.hbm.xml" />
<mapping resource="com/scnf/model/UtilisateurHasEvenement.hbm.xml" />
<mapping resource="com/scnf/lot2/model/Challenge.hbm.xml" />
<mapping resource="com/scnf/lot2/model/UtilisateurHasMichelineAccessoire.hbm.xml" />
<mapping resource="com/scnf/lot2/model/UtilisateurHasMichelinePersonnalisation.hbm.xml" />
<mapping resource="com/scnf/lot2/model/AgentHasQuizReponse.hbm.xml" />
<mapping resource="com/scnf/lot2/model/CompteAgence.hbm.xml" />
<mapping resource="com/scnf/lot2/model/CompteAgent.hbm.xml" />
<mapping resource="com/scnf/lot2/model/SoldeCcav.hbm.xml" />
<mapping resource="com/scnf/lot2/model/Gain.hbm.xml" />
<mapping resource="com/scnf/lot2/model/AgenceHasDefi.hbm.xml" />
<mapping resource="com/scnf/lot2/model/Defi.hbm.xml" />
<mapping resource="com/scnf/lot2/model/DefiObjectif.hbm.xml" />
<mapping resource="com/scnf/lot2/model/RangDefi.hbm.xml" />
<mapping resource="com/scnf/lot2/model/Quiz.hbm.xml" />
<mapping resource="com/scnf/lot2/model/QuizQuestion.hbm.xml" />
<mapping resource="com/scnf/lot2/model/QuizReponse.hbm.xml" />
<mapping resource="com/scnf/lot2/model/UtilisateurHasQuiz.hbm.xml" />
<mapping resource="com/scnf/lot2/model/TypeGain.hbm.xml" />
<mapping resource="com/scnf/lot2/model/Commande.hbm.xml" />
<mapping resource="com/scnf/lot2/model/CommandeDetail.hbm.xml" />
<mapping resource="com/scnf/lot2/model/AgentHasResultatQuiz.hbm.xml" />
</session-factory>
</hibernate-configuration>
Partager