Hi John (and everyone else),
I suggest changing the looks_like_map_table to not match "foo_bars",
but only *_map and "foos_bars". I realize we can just override it in
our convention manager, but it's a goofy default, I think. Either I
don't understand entirely how the looks_like_map_method is used or I
don't understand what kind of crazy naming scheme would call a
mapping table "foo_bars". :-)
Actually, ideally it would just match things with two columns that
both reference other tables (and/or something like
looks_like_map_class), but that might be much harder to do.
For reference, this is what the default method looks like nwo.
sub looks_like_map_table
{
my($self, $table) = @_;
if($table =~ m{^(?:
(?:\w+_){2,}map # foo_bar_map
| (?:\w+_)*\w+_(?:\w+_)*\w+s # foo_bars
| (?:\w+_)*\w+s_(?:\w+_)*\w+s # foos_bars
)$}x)
{
return 1;
}
return 0;
}
My suggestion is that the middle part of the regexp is taken out.
- ask
--
http://develooper.com/ - http://askask.com/
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Rose-db-object mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rose-db-object