Bonjour a tous,

Tout d'abord merci pour toute reponse ou idée qui me tracera une piste.

Il s'agit d'une application java qui communique avec une base de donnees HSQL,
A partir de mon application je sauvegarde des donnees dans ma base de donnes. je les visualise par un gestionnaire de bd. Je redemare mon serveur, puis mes donnees ne sont plus la
voici ma methode d'ajout
public class SourceDAO extends HibernateDaoSupport implements ISourceDAO {
public void insererSource(Source source)
throws DAOException {
try {
getHibernateTemplate().save(source);
logg.log(Level.INFO, "SourceType LABEL "+srcType.getLibelle());
} catch (Exception e) {
logg.log(Level.ERROR, e);
}
}
}
et voici mon fichier configuration
<bean id="hibernateProperties"
class="org.springframework.beans.factory.config.PropertiesFactoryBean">
<property name="properties">
<props>
<prop key="hibernate.connection.url">jdbc:hsqldb:hsql://localhost:9002/ideoptimadb</prop>
<prop key="hibernate.connection.driver_class">org.hsqldb.jdbcDriver</prop>
<prop key="hibernate.connection.username">sa</prop>
<prop key="hibernate.connection.password"></prop>
<prop key="hibernate.connection.pool_size">1</prop>

<prop key="hibernate.dialect">org.hibernate.dialect.HSQLDialect</prop>
<prop key="hibernate.show_sql">false</prop>
<prop key="hibernate.cache.provider_class">net.sf.ehcache.hibernate.EhCacheProvider</prop>
<prop key="hibernate.cache.use_second_level_cache">true</prop>
<prop key="hibernate.cache.use_query_cache">true</prop>
<prop key="net.sf.ehcache.configurationResourceName">/conf/ideoptima.ehcache.xml</prop>
<prop key="hibernate.generate_statistics">true</prop>
<prop key="hibernate.cache.use_structured_entries">true</prop>
</property>
</bean>