Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "EclipseLink/Development/DBWS/NamingConventionTransformer"
< EclipseLink | Development | DBWS
(→DBWS utility enhancement: Naming convention of generated schema types) |
|||
Line 22: | Line 22: | ||
<sup>1</sup> - same algorithm documented as part of the SQL/X specification (a.k.a. ISO/IEC 9075-14:2003 Part 14) <br/> | <sup>1</sup> - same algorithm documented as part of the SQL/X specification (a.k.a. ISO/IEC 9075-14:2003 Part 14) <br/> | ||
<sup>2</sup> - All columns expressed as XML elements | <sup>2</sup> - All columns expressed as XML elements | ||
+ | |||
+ | === Proposed new Interface <tt>org.eclipse.persistence.tools.dbws.NamingConventionTransformer</tt> === | ||
+ | The proposed fix for [https://bugs.eclipse.org/bugs/show_bug.cgi?id=234677 bug 234677] is the introduction of a new Interface class: | ||
+ | <source lang=java> | ||
+ | package org.eclipse.persistence.tools.dbws; | ||
+ | |||
+ | public interface NamingConventionTransformer { | ||
+ | |||
+ | } | ||
+ | </source> |
Revision as of 12:39, 11 September 2008
DBWS Schema Naming Convention Transformers
Document History
Date | Author | Version Description & Notes |
---|---|---|
080911 | Mike Norman | 1.0 |
DBWS utility enhancement: Naming convention of generated schema types
bug 234677
The DBWSBuilder utility should allow the user to alter the names of the generated schema types.
The algorithm currently in use is very simple:
- table name ==> translate any characters un-supported by XML1 ==> to_lowercase ==> add suffix 'Type' ==> top-level complex element type in .xsd file
- column name ==> translate characters ==> to_lowercase ==> element tag name2
1 - same algorithm documented as part of the SQL/X specification (a.k.a. ISO/IEC 9075-14:2003 Part 14)
2 - All columns expressed as XML elements
Proposed new Interface org.eclipse.persistence.tools.dbws.NamingConventionTransformer
The proposed fix for bug 234677 is the introduction of a new Interface class:
package org.eclipse.persistence.tools.dbws; public interface NamingConventionTransformer { }