File Coverage

blib/lib/Bio/Chado/Schema/Result/Genetic/FeatureGenotype.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::Genetic::FeatureGenotype;
2             BEGIN {
3 6     6   2713 $Bio::Chado::Schema::Result::Genetic::FeatureGenotype::AUTHORITY = 'cpan:RBUELS';
4             }
5             BEGIN {
6 6     6   97 $Bio::Chado::Schema::Result::Genetic::FeatureGenotype::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   35 use strict;
  6         14  
  6         95  
13 6     6   28 use warnings;
  6         14  
  6         143  
14              
15 6     6   27 use base 'DBIx::Class::Core';
  6         15  
  6         1320  
16              
17              
18              
19             __PACKAGE__->table("feature_genotype");
20              
21              
22             __PACKAGE__->add_columns(
23             "feature_genotype_id",
24             {
25             data_type => "integer",
26             is_auto_increment => 1,
27             is_nullable => 0,
28             sequence => "feature_genotype_feature_genotype_id_seq",
29             },
30             "feature_id",
31             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
32             "genotype_id",
33             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
34             "chromosome_id",
35             { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
36             "rank",
37             { data_type => "integer", is_nullable => 0 },
38             "cgroup",
39             { data_type => "integer", is_nullable => 0 },
40             "cvterm_id",
41             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
42             );
43             __PACKAGE__->set_primary_key("feature_genotype_id");
44             __PACKAGE__->add_unique_constraint(
45             "feature_genotype_c1",
46             [
47             "feature_id",
48             "genotype_id",
49             "cvterm_id",
50             "chromosome_id",
51             "rank",
52             "cgroup",
53             ],
54             );
55              
56              
57             __PACKAGE__->belongs_to(
58             "cvterm",
59             "Bio::Chado::Schema::Result::Cv::Cvterm",
60             { cvterm_id => "cvterm_id" },
61             {
62             cascade_copy => 0,
63             cascade_delete => 0,
64             is_deferrable => 1,
65             on_delete => "CASCADE",
66             on_update => "CASCADE",
67             },
68             );
69              
70              
71             __PACKAGE__->belongs_to(
72             "genotype",
73             "Bio::Chado::Schema::Result::Genetic::Genotype",
74             { genotype_id => "genotype_id" },
75             {
76             cascade_copy => 0,
77             cascade_delete => 0,
78             is_deferrable => 1,
79             on_delete => "CASCADE",
80             on_update => "CASCADE",
81             },
82             );
83              
84              
85             __PACKAGE__->belongs_to(
86             "feature",
87             "Bio::Chado::Schema::Result::Sequence::Feature",
88             { feature_id => "feature_id" },
89             {
90             cascade_copy => 0,
91             cascade_delete => 0,
92             is_deferrable => 1,
93             on_delete => "CASCADE",
94             on_update => "CASCADE",
95             },
96             );
97              
98              
99             __PACKAGE__->belongs_to(
100             "chromosome",
101             "Bio::Chado::Schema::Result::Sequence::Feature",
102             { feature_id => "chromosome_id" },
103             {
104             cascade_copy => 0,
105             cascade_delete => 0,
106             is_deferrable => 1,
107             join_type => "LEFT",
108             on_delete => "CASCADE",
109             on_update => "CASCADE",
110             },
111             );
112              
113              
114             # Created by DBIx::Class::Schema::Loader v0.06001 @ 2010-04-16 14:33:36
115             # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rYv5f79L27aQ8morfbSBYQ
116              
117              
118             # You can replace this text with custom content, and it will be preserved on regeneration
119             1;
120              
121             __END__