Here is the complete list of category of elements that JPA says should be quoted when global quoting is requested:
- catalog name
- schema name
- table name
- foreign-key name
- stored procedure name
- column name
- column definition
- foreign-key definition
For sure the 2 "definition" categories stick out here as ones users would probably want control over being able to opt-out of global quoting. So I see 2 options here:
- Add a simple true/false setting defining whether to exclude definitions ("column definition" and "foreign-key definition") from global quoting
- Add a setting for explicit control over the categories to include/exclude from global quoting.
The first option is obviously simpler. But if we are ever going to allow opting out of globally quoting others, I'd rather have the second option then a bunch of additional settings following the first option. |