Merge pull request #4106 from solgenomics/topic/wishlist
[sgn.git] / t / lib / TestProp.pm
blobbda0d336a7d19c1f647c91f28aab137b735d178d
1 package TestProp;
3 use Moose;
5 use Data::Dumper;
7 BEGIN { extends 'CXGN::JSONProp'; }
9 has 'info_field1' => (isa => 'Str', is => 'rw');
11 has 'info_field2' => (isa => 'Str', is => 'rw');
13 sub BUILD {
14 my $self = shift;
15 my $args = shift;
17 $self->prop_table('projectprop');
18 $self->prop_namespace('Project::Projectprop');
19 $self->prop_primary_key('projectprop_id');
20 $self->prop_type('analysis_metadata_json');
21 $self->cv_name('project_property');
22 $self->allowed_fields( [ qw | info_field1 info_field2 | ] );
23 $self->parent_table('project');
24 $self->parent_primary_key('project_id');
26 $self->load();