I ran into this problem doing some hibernate testing a few years ago. In my case the problem was, that hsqldb by default, requires all I/U/D queries to be executed insode a transaction which also needs to be commited, otherwise the data is not persisted. Also make shure that the file of the database resides outside the webapp root directory, otherwise it will be overwritten on each new deployment. Also tell hibernate to only update (<property name="hbm2ddl.auto">update</property>) the schema on application startup. A <property name="hbm2ddl.auto">create-drop</property> will delete all the data created before. Hope this helps, Richard
2009/2/23 AK <[email protected]>: > I'm using quickstart and have a simple app w/ a form that enters a value (an > e-mail addr) into a HSQL table instanciated by use of the @Entity annotation > on > the Person class, who's field is being persisted (via Stripersist). > > When I start up HSQL, all the previously entered values are there only > sometimes--and not others! Furthermore, I'm noting that every time I shut > down > and start the database and persist a *new* value, the previous values are all > wiped out. I'm not sure if this is a problem w/ how I have HSQL configured or > if it's my lack of imposing some type of a constraint on the Person class (or > somewhere else?). > > I believe I've setup HSQL to be a persistent store by use of the following in > the .properties file: > > hsqldb.default_table_type=cached > > Is this behavior something someone's seen before? > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Stripes-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/stripes-users > ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users
