https://github.com/caplin/persistence-upgrade
Java program to help migrate persisted data from Transformer 6.2 to Transformer 7.0
https://github.com/caplin/persistence-upgrade
Last synced: 3 months ago
JSON representation
Java program to help migrate persisted data from Transformer 6.2 to Transformer 7.0
- Host: GitHub
- URL: https://github.com/caplin/persistence-upgrade
- Owner: caplin
- Created: 2016-09-28T12:02:58.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-10-07T09:24:08.000Z (over 8 years ago)
- Last Synced: 2024-12-28T19:52:05.716Z (5 months ago)
- Language: Java
- Size: 7.81 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Persistence upgrade tool
A tool that helps migrating data persisted with a Transformer 6.2 to a Transformer 7.0. It supports reading from either a file DB or a java DB (via jdbc) and generates insert statements for the different tables used in version 7.
## Usage:
- Clone the Repo
- run `gradle jar` which produces an executable jar file
- run the program by running `java -jar build/libs/upgradeTool-0.1.jar [options]`
## Examples:
The following examples showcase how to run the tool for the different modes (file DB vs java DB)
### FileDb
To run the upgrade tool on a persistence folder run
```bash
java -jar build/libs/upgradeTool-0.1.jar --filedb --folder
```### JavaDb
To run the upgrade tool with jdbc mode, a JDBC Driver needs to be supplied and made available on the classpath in addition to specifying the correct arguments. When command line arguments contain special characters they need to be quoted.
```bash
#Linux/OSX
java -cp :build/libs/upgradeTool-0.1.jar com.caplin.upgradetool.UpgradeTool --driver --url --user --password --table --columns#Windows
java -cp ;build/libs/upgradeTool-0.1.jar com.caplin.upgradetool.UpgradeTool --driver --url --user --password --table --columns
```## Notes
- The command line option `--converters` can be used to override the default classes used in case other modules than the ones that have converters supplied for them need their data upgraded too. This option is a list of class names. The classes must mimplement the `Converter` interface
- The command line option `--generator` can be used to override the default generator. The default generator prints INSERT statements for the upgraded data to stdout. It might be desirable to directly insert data into the new database tables, in which case a new generator can be supplied. The class must implement the `ConverterVisitor` interface
- This tool is unsupported and provided as is
- You're free to modify the code as you see fit