Re: [h2] h2 Database backup and restore while database is opned using hibernate ORM

2019-07-31 Thread Bruno Santos Silva
Restore how works? Em segunda-feira, 4 de abril de 2016 02:40:07 UTC-3, Ryan How escreveu: > > You aren't executing the query, only creating it? > > session.createSQLQuery("BACKUP TO '" + file.getCanonicalPath() + > "'").executeUpdate(); > > > > > > On 4/04/2016 4:55 AM, abdou amer wrote: > > I

Re: [h2] h2 Database backup and restore while database is opned using hibernate ORM

2016-04-03 Thread Ryan How
You aren't executing the query, only creating it? |session.createSQLQuery("BACKUP TO '"+file.getCanonicalPath()+"'").executeUpdate();| On 4/04/2016 4:55 AM, abdou amer wrote: |I want to perform backup and restore using hibernate ORM, but i seems that the below code not do any thing.| |So,

[h2] h2 Database backup and restore while database is opned using hibernate ORM

2016-04-03 Thread abdou amer
I want to perform backup and restore using hibernate ORM, but i seems that the below code not do any thing. So, what the propre way to perform backup and restore without corrupting the database. File file = fileChooser.showSaveDialog(tbTabPaneHome.getScene().getWindow()); if (file !=