Home

Awesome

Kotlin Sample Project for Data Anonymization

  1. Download and start H2 database server
  2. Connect to source (movies_source) database and execute create_tables.sql script
  3. Connect to destination (movies_dest) database and execute create_tables.sql script
  4. Insert sample data into source database tables using scripts insert_movies.sql and insert_ratings.sql
  5. Run this main program using following command
  6. Now change Main program (Anonymizer.kt) as per your need and delete resources (*.sql files)

Running it using maven command line

$ mvn exec:java

Running it as executable jar

first package it and run the generated jar in target folder

$ mvn package
$ java -jar target/dataanon-kotlin-sample-1.0-SNAPSHOT.jar