Update Crud::SubClass test.
This commit is contained in:
parent
4c5c9fc840
commit
753cc9b75c
2 changed files with 17 additions and 17 deletions
|
|
@ -2,20 +2,20 @@ package WebGUI::Crud::Subclass;
|
|||
|
||||
use strict;
|
||||
|
||||
use base 'WebGUI::Crud';
|
||||
use Moose;
|
||||
use WebGUI::Definition::Crud;
|
||||
extends 'WebGUI::Crud';
|
||||
define tableName => 'crudSubclass';
|
||||
define tableKey => 'crudSubclassId';
|
||||
has crudSubclassId => (
|
||||
required => 1,
|
||||
is => 'ro',
|
||||
);
|
||||
|
||||
sub crud_definition {
|
||||
my ($class, $session) = @_;
|
||||
my $definition = $class->SUPER::crud_definition($session);
|
||||
$definition->{tableName} = 'crudSubclass';
|
||||
$definition->{tableKey} = 'crudSubclassId';
|
||||
$definition->{sequenceKey} = '';
|
||||
my $properties = $definition->{properties};
|
||||
$properties->{field1} = {
|
||||
fieldType => 'integer',
|
||||
defaultValue => 5,
|
||||
};
|
||||
return $definition;
|
||||
}
|
||||
property field1 => (
|
||||
label => 'field1',
|
||||
fieldType => 'integer',
|
||||
defaultValue => 5,
|
||||
);
|
||||
|
||||
1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue