Instead of overriding the table() method for each persistent class, the table

name should be included in classSettings().
This commit is contained in:
Ben Simpson 2003-05-07 11:03:26 +00:00
parent 96bfe07ec9
commit 2786df46ce
4 changed files with 35 additions and 21 deletions

View file

@ -44,9 +44,6 @@ methods), and from Tree::DAG_Node (to provide tree manipulation methods).
use WebGUI::Persistent::Tree;
our @ISA = qw(WebGUI::Persistent::Tree);
sub table { 'myTreeTable' }
sub classSettings {
{
properties => {
@ -55,7 +52,8 @@ methods), and from Tree::DAG_Node (to provide tree manipulation methods).
C => { quote => 1 , defaultValue => "hello world"},
parentId => { defaultValue => 0 },
sequenceNumber => { defaultValue => 1 }
}
},
table => 'myTreeTable'
}
}