Table of Contents
Introduction
The tree-ware MySQL library helps create a database and tables in MySQL to store tree-ware models.
Meta-Model Aux Data
The my_sql_
aux data in the meta-model indicates which packages and entities need to be stored in MySQL. The database and table names are derived automatically from the package and entity names. If the derived names are longer than that supported by MySQL, meta-model validation will fail. Shorter names can be specified using the following fields in my_sql_
aux data: table_prefix
for packages and table_name
for entities.
Spatial Columns
Spatial columns are supported via a geo meta-model in the core tree-ware library and operator delegates in the mysql tree-ware library. Currently, only a latitude/longitude point entity is supported. Use this point entity as the field type (composition), and call registerMySqlOperatorDelegates()
at startup to register the necessary operator delegates.