On 6/26/07, James Masters <[EMAIL PROTECTED]> wrote: > 1. I have to create a custom column class. > package GARD::Column::SourceYear; > use base 'Rose::DB::Object::Metadata::Column::Integer'; > sub select_sql {...} > etc. > > I assume this is just a file. And I have to create a subdir Column under > the GARD directory where the other GARD modules are found and put the file > in there. Is that right?
Right, or put it anywhere in your @INC search path. > And presumably this won't be picked up automatically so I then have to "use" > it somewhere. If you register it as a column_type_class(), it'll be automatically loaded when you specify a column of the registered type. Or you can use() it directly if you want. No harm either way. -John ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Rose-db-object mailing list Rose-db-object@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rose-db-object