With this module, you can extract the schema of a MySql database in JSON format, including the relations between tables. It is also possible to extract relations by 'naming convention'.
This project provided a hibernate UserType and a dialect with json support. The UserType uses jackson object mappper to do a fast serialize/deserialize of a json string representation. More ...