Dear all,
I've just a question for you.
I developed a java application that uses hibernate.
My only issue is that boot of application requires several seconds.
Is there a way to speed up hibernate boot?
I show my configuration file, please let me know if I missed something:
Code:
<?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.dialect">org.hibernate.dialect.DerbyDialect</property>
<property name="hibernate.connection.driver_class">org.apache.derby.jdbc.EmbeddedDriver</property>
<property name="hibernate.connection.url">jdbc:derby:xxx</property>
<property name="hibernate.connection.username">yyy</property>
<property name="hibernate.connection.password">zzz</property>
<property name="hibernate.transaction.factory_class">org.hibernate.transaction.JDBCTransactionFactory</property>
<property name="hibernate.connection.autocommit ">false</property>
<property name="hibernate.show_sql">false</property>
<property name="hibernate.format_sql">true</property>
<property name="hibernate.hbm2ddl.auto">update</property>
<mapping class="app.entity.Cap"/>
<mapping class="app.entity.entity1/>
<mapping class="app.entity.entity2"/>
<mapping class="app.entity.entity3"/>
....
</session-factory>
</hibernate-configuration>
PLease help me, thanks