persistence in hsqldb with spring -


i'm struggling persistence spring , hsqldb. checked out several questions couldn't manage find solution:

threads checked out: no schema in file database after running program persisted hsqldb:file via hibernate hsqldb , hibernate/jpa - not persisting disk? hibernate doesn't save records in database

however didn't far. everytime restart webserver changes gone , nothing written harddisk.

hibernate configuration follows

@bean public annotationsessionfactorybean sessionfactorybean() {     properties props = new properties();     props.put("hibernate.dialect", hsqldialect.class.getname());     props.put("hibernate.format_sql", "true");     props.put("hibernate.show_sql", "true");     props.put("hibernate.hbm2ddl.auto", "update");     props.put("hibernate.connection.url", "jdbc:hsqldb:file:c:\\temp\\rvec");     props.put("hibernate.connection.username", "sa");     props.put("hibernate.connection.password", "");     props.put("hibernate.connection.pool_size","1");     props.put("hibernate.connection.autocommit", "true");       annotationsessionfactorybean bean = new annotationsessionfactorybean();     bean.setannotatedclasses(new class[]{course.class, user.class, event.class});            bean.sethibernateproperties(props);      bean.setdatasource(this.datasource);     bean.setschemaupdate(true);     return bean; } 

data source , transaction manager configured in servlet-context.xml

<tx:annotation-driven transaction-manager="transactionmanager" /> 

there no errors thrown in console valid sql statements. ideas?

kind regards, lomu


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -