-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: problem persisting with hsqldb (in-process standalone mode)
PostPosted: Tue Dec 11, 2007 4:50 am 
Newbie

Joined: Fri Dec 07, 2007 7:02 am
Posts: 1
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.