Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Undefined future
-
None
Description
Users should be given some flexibility when it comes to default names generated during reverse engineering. E.g. there were requests to automatically change plural form to singular ("product_groups" -> "ProductGroup"). There maybe other user-specific cases for transforming DB name to Java name.
Suggested solution was to allow entering regex-based rules in the Modeler:
http://objectstyle.org/cayenne/lists/cayenne-user/2005/11/0104.html
Another related request suggested to have an option for naming relationships using attribute names instead of target entity names. This may also be one of the rules:
http://objectstyle.org/cayenne/lists/cayenne-user/2005/11/0106.html
Another suggestion by Cris - store the rules in DataMap for possible reverse engineering with Ant. This should allow model synching directly against the database (but would of course require a special Ant task)