Hibernate version: 3.2.5
Name and version of the database you are using:hsqldb
when using hsqldb server mode (url pattern jdbc:hsqldb:hsql://localhost/<myDb>) data gets persisted correctly. when using in-process standalone mode (url pattern jdbc:hsqldb:file:testdb) data does not get persisted.
the only difference of above observation is that the spring-bean of AnnotationSessionFactoryBean has different properties of hibernate.connection.url.
following code gets executed (behind the scenes spring is used):
Code:
//encapsulate transaction aspect, and the fact that hibernate gets used
public void saveOrUpdate(final Object obj) {
BeanFactory.getTransactionTemplate().execute(new TransactionCallback(){
public Object doInTransaction(TransactionStatus status) {
hibernateTemplate.saveOrUpdate(obj);
return null;
}
});
}
has anybody a clue why? in my perception only memory hsqldb mode should be transient, both other modes should be persistent.