I use H2 in memory + hibernate, I need to load and save data into the sql script when loading and shutting down, how to implement it?

    1 answer 1

    Watching how to use. One of the initialization options is described in the documentation :

    String url = "jdbc:h2:mem:test;INIT=runscript from '~/create.sql'\\;runscript from '~/init.sql'";