Documentation for the "database
" JSON key.
The database
key is a JSON Object of which it MUST contain the following keys:
schema
package
tables
It may also optionally contain the following key:
views
The schema
key
The schema
key is a String
value which defines the name of the database schema. This must be present and must be a valid MySQL database schema name.
The package
key
The package
key is a String
value which defines the name (and therefore the directory layout) of the java package that the code will be generated.
As there is may be a large amout of files and code generated it is recommended that the package namespace end with a .h2zero
to avoid cluttering up non-generated code.
As an example, if you java package namespace is synapticloop.superproject
, then it is recommended that the package
be set to synapticloop.superproject.h2zero
.
The tables
key
The tables
key is a JSON Array that in turn holds JSON objects which describe the tables that are going to be created in the database schema and the code that is giong to be generated.
The views
key
The views
key is a JSON Array that in turn holds JSON objects which describe the views that are going to be created in the database schema and the code that is giong to be generated.
{
"database": {
"schema": "h2zero_sample",
"package": "h2zero.sample.h2zero",
"tables": [
{...}
],
"views": [
{...}
]
}
}