jasmineRepo / JAS-mine-core

JAS-mine maintains and develops the JAS simulation platform, a discrete-event tool-kit for agent-based and dynamic microsimulation modelling. This repository contains the core libraries. See www.jas-mine.net for more details.
2 stars 5 forks source link

Do not set `dataBaseInputUrl` to root database on iteration 2 of multiruns. #41

Closed andrewbaxter439 closed 10 months ago

andrewbaxter439 commented 10 months ago

In partial fixing of https://github.com/centreformicrosimulation/SimPaths/issues/24 - this adds a boolean flag to stop the resetting of database URL after the first run. Instead it will persist at output/yyyymmddhhmmss_seed/input/input.mv.db for all iterations of that multirun.

andrewbaxter439 commented 10 months ago

As a brief note - commit 20a67f0cead940d5c1cd508a96b3044926606b00 experimented with forcing the Hibernate/persistence database entity manager to re-create the database entity at the start of each iteration (repeating adding missing columns to each table). This wasn't strictly necessary though as the columns persist when https://github.com/centreformicrosimulation/SimPaths/pull/27 is implemented. I've reverted this change in f049e1c before this pull request.

Do let me know if this seems an irrational/breaking approach to solving the problem @pbronka @justin-ven!