Hi, folks. I'm very new to RDBO. I want all Rose::DB::Object-derived classes to default_update_changes_only set to true by default.
Here's what I've done. It's working, but tell me if this is the recommended way. First I created three project base classes, each inheriting from the associated Rose:: class. MyApp::DB < Rose::DB MyApp::DB::Object < Rose::DB::Object MyApp::DB::Object::Metadata < Rose::DB::Object::Metadata I modified MyApp::DB::Object to use the project's metadata class: sub meta_class { 'MyApp::DB::Object::Metadata' } Then I override the default_update_changes_only method in the Metadata class: package MyApp::DB::Object::Metadata; use strict; use base qw/ Rose::DB::Object::Metadata /; use Rose::Object::MakeMethods::Generic ( { override_existing => 1 }, boolean => [ default_update_changes_only => { default => 1 }, ] ); Is that the recommended way of doing this? Thanks, Maurice ------------------------------------------------------------------------- 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