On 7/14/06 9:19 PM, Danial Pearce wrote: > Cool thanks. That's close to what I had. I just wasn't sure if it was > safe to be overloading the Metadata methods like that.
It's safe to override any public method, especially when making a simple change like this and delegating the rest to the superclass. > If you go on later to use the: > > ->meta->setup(columns => [ Foo => { type = int } ]) > > Style of initializing, will the auto_generate_column() method even > get looked at? No, it only gets called when auto-initializing columns. > What would you need to overload to change the default method names? Well, the column classes themselves, when you get down to it. You could also override add_columns() in your metadata class and do your touch-up work there. But a proper convention manager interface is preferable, of course. -John ------------------------------------------------------------------------- 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 Rose-db-object@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rose-db-object