Hello,
I use Hibernate3. I configure the property "hibernate.transaction.auto_close_session" in the hibernate.cfg.xml file and I put its value to "false". I don't want close session automatically. But it don't work. Any idea?
My hibernate.cfg.xml is
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory> <property name="hibernate.connection.driver_class">org.gjt.mm.mysql.Driver</property> <property name="hibernate.connection.password">events</property> <property name="hibernate.connection.url">jdbc:mysql://localhost/scop</property> <property name="hibernate.connection.username">Events</property> <property name="show_sql">false</property> <property name="hibernate.transaction.flush_before_completion" >false</property> <property name="hibernate.transaction.auto_close_session" >false</property> <property name="hibernate.dialect">org.hibernate.dialect.MySQLInnoDBDialect</property> <property name="current_session_context_class">thread</property>
<mapping resource="com/ikusi/aer/scop/model/TScopEvents.hbm.xml"/> <mapping resource="com/ikusi/aer/scop/model/TScopOperations.hbm.xml"/> </session-factory> </hibernate-configuration>
Thanks in advances, l.esnaola
|