File Coverage

blib/lib/Bio/Chado/Schema/Result/Mage/Studyfactor.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1             package Bio::Chado::Schema::Result::Mage::Studyfactor;
2             BEGIN {
3 6     6   2655 $Bio::Chado::Schema::Result::Mage::Studyfactor::AUTHORITY = 'cpan:RBUELS';
4             }
5             BEGIN {
6 6     6   112 $Bio::Chado::Schema::Result::Mage::Studyfactor::VERSION = '0.08001'; # TRIAL
7             }
8              
9             # Created by DBIx::Class::Schema::Loader
10             # DO NOT MODIFY THE FIRST PART OF THIS FILE
11              
12 6     6   39 use strict;
  6         17  
  6         117  
13 6     6   31 use warnings;
  6         16  
  6         158  
14              
15 6     6   33 use base 'DBIx::Class::Core';
  6         13  
  6         1035  
16              
17              
18              
19             __PACKAGE__->table("studyfactor");
20              
21              
22             __PACKAGE__->add_columns(
23             "studyfactor_id",
24             {
25             data_type => "integer",
26             is_auto_increment => 1,
27             is_nullable => 0,
28             sequence => "studyfactor_studyfactor_id_seq",
29             },
30             "studydesign_id",
31             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
32             "type_id",
33             { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
34             "name",
35             { data_type => "text", is_nullable => 0 },
36             "description",
37             { data_type => "text", is_nullable => 1 },
38             );
39             __PACKAGE__->set_primary_key("studyfactor_id");
40              
41              
42             __PACKAGE__->belongs_to(
43             "studydesign",
44             "Bio::Chado::Schema::Result::Mage::Studydesign",
45             { studydesign_id => "studydesign_id" },
46             {
47             cascade_copy => 0,
48             cascade_delete => 0,
49             is_deferrable => 1,
50             on_delete => "CASCADE",
51             on_update => "CASCADE",
52             },
53             );
54              
55              
56             __PACKAGE__->belongs_to(
57             "type",
58             "Bio::Chado::Schema::Result::Cv::Cvterm",
59             { cvterm_id => "type_id" },
60             {
61             cascade_copy => 0,
62             cascade_delete => 0,
63             is_deferrable => 1,
64             join_type => "LEFT",
65             on_delete => "CASCADE",
66             on_update => "CASCADE",
67             },
68             );
69              
70              
71             __PACKAGE__->has_many(
72             "studyfactorvalues",
73             "Bio::Chado::Schema::Result::Mage::Studyfactorvalue",
74             { "foreign.studyfactor_id" => "self.studyfactor_id" },
75             { cascade_copy => 0, cascade_delete => 0 },
76             );
77              
78              
79             # Created by DBIx::Class::Schema::Loader v0.06001 @ 2010-04-16 14:33:36
80             # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:r3AXldhGZ5VdDEmbPPqX6Q
81              
82              
83             # You can replace this text with custom content, and it will be preserved on regeneration
84             1;
85              
86             __END__