Instead of overriding the table() method for each persistent class, the table
name should be included in classSettings().
This commit is contained in:
parent
96bfe07ec9
commit
2786df46ce
4 changed files with 35 additions and 21 deletions
|
|
@ -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'
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue