Calculate the name of a column based on the name of the MappedField.
Calculate the name of a column based on the name of the MappedField. Must be set in Boot before any code that touches the MetaMapper.
To get snake_case, use this:
MapperRules.columnName = (_,name) => StringHelpers.snakify(name)
Function that determines if foreign key constraints are created by Schemifier for the specified connection.
Function that determines if foreign key constraints are created by Schemifier for the specified connection.
Note: The driver choosen must also support foreign keys for creation to happen
This function converts an element into the appropriate XHTML format for displaying across a line formatted block.
This function converts an element into the appropriate XHTML format for displaying across a line formatted block. The default is <td> for use in XHTML tables. If you change this function, the change will be used for all MetaMappers, unless they've been explicitly changed.
This function is used to calculate the displayName of a field.
This function is used to calculate the displayName of a field. Can be used to easily localize fields based on the locale in the current request
This function converts a header name into the appropriate XHTML format for displaying across the headers of a formatted block.
This function converts a header name into the appropriate XHTML format for displaying across the headers of a formatted block. The default is <th> for use in XHTML tables. If you change this function, the change will be used for all MetaMappers, unless they've been explicitly changed.
This function is the global (for all MetaMappers that have not changed their formatFormElement function) that converts a name and form for a given field in the model to XHTML for presentation in the browser.
This function is the global (for all MetaMappers that have not changed their formatFormElement function) that converts a name and form for a given field in the model to XHTML for presentation in the browser. By default, a table row ( <tr> ) is presented, but you can change the function to display something else.
What are the rules and mechanisms for putting quotes around column names?
What are the rules and mechanisms for putting quotes around table names?
Calculate the name of a table based on the name of the Mapper.
Calculate the name of a table based on the name of the Mapper. Must be set in Boot before any code that tocuhes the MetaMapper.
To get snake_case, use this
MapperRules.tableName = (_,name) => StringHelpers.snakify(name)
Rules and functions shared by all Mappers