Class PluralizedTableNameConverter
- All Implemented Interfaces:
TableNameConverter
A simple table name converter which imposes a set of regular-expression rules to pluralize names generated by the delegate converter.
Unfortunately, due to complexities innate to the English language, automatic pluralization is never very accurate. The sheer number of irregular nouns, coupled with the different conjugations which can unrecognizably mangle even an "every day" noun makes it extremely difficult to define generic rules which can control pluralization. ActiveObjects attempts to uphold the highest standards of quality in its pluralization engine by imposing rigorous tests using a wide variety of dictionary words. However, the pluralization should be considered experimental at best.
To enable table name pluralization, simply set the name converter for
the EntityManager
in question to an instance of this class.
-
Constructor Summary
ConstructorsConstructorDescriptionPluralizedTableNameConverter
(CanonicalClassNameTableNameConverter delegateTableNameConverter) -
Method Summary
Methods inherited from class net.java.ao.schema.CanonicalClassNameTableNameConverter
getName
-
Constructor Details
-
PluralizedTableNameConverter
public PluralizedTableNameConverter() -
PluralizedTableNameConverter
public PluralizedTableNameConverter(CanonicalClassNameTableNameConverter delegateTableNameConverter)
-
-
Method Details
-
getDelegate
-
getName
- Specified by:
getName
in classCanonicalClassNameTableNameConverter
-