File Coverage

blib/lib/Bio/Chado/Schema/Result/Map/Featuremap.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::Map::Featuremap;
2             BEGIN {
3 6     6   2966 $Bio::Chado::Schema::Result::Map::Featuremap::AUTHORITY = 'cpan:RBUELS';
4             }
5             BEGIN {
6 6     6   112 $Bio::Chado::Schema::Result::Map::Featuremap::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         14  
  6         392  
13 6     6   28 use warnings;
  6         12  
  6         143  
14              
15 6     6   29 use base 'DBIx::Class::Core';
  6         12  
  6         1128  
16              
17              
18              
19             __PACKAGE__->table("featuremap");
20              
21              
22             __PACKAGE__->add_columns(
23             "featuremap_id",
24             {
25             data_type => "integer",
26             is_auto_increment => 1,
27             is_nullable => 0,
28             sequence => "featuremap_featuremap_id_seq",
29             },
30             "name",
31             { data_type => "varchar", is_nullable => 1, size => 255 },
32             "description",
33             { data_type => "text", is_nullable => 1 },
34             "unittype_id",
35             { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
36             );
37             __PACKAGE__->set_primary_key("featuremap_id");
38             __PACKAGE__->add_unique_constraint("featuremap_c1", ["name"]);
39              
40              
41             __PACKAGE__->belongs_to(
42             "unittype",
43             "Bio::Chado::Schema::Result::Cv::Cvterm",
44             { cvterm_id => "unittype_id" },
45             {
46             cascade_copy => 0,
47             cascade_delete => 0,
48             is_deferrable => 1,
49             join_type => "LEFT",
50             on_delete => "CASCADE",
51             on_update => "CASCADE",
52             },
53             );
54              
55              
56             __PACKAGE__->has_many(
57             "featuremap_pubs",
58             "Bio::Chado::Schema::Result::Map::FeaturemapPub",
59             { "foreign.featuremap_id" => "self.featuremap_id" },
60             { cascade_copy => 0, cascade_delete => 0 },
61             );
62              
63              
64             __PACKAGE__->has_many(
65             "featurepos",
66             "Bio::Chado::Schema::Result::Map::Featurepos",
67             { "foreign.featuremap_id" => "self.featuremap_id" },
68             { cascade_copy => 0, cascade_delete => 0 },
69             );
70              
71              
72             __PACKAGE__->has_many(
73             "featureranges",
74             "Bio::Chado::Schema::Result::Map::Featurerange",
75             { "foreign.featuremap_id" => "self.featuremap_id" },
76             { cascade_copy => 0, cascade_delete => 0 },
77             );
78              
79              
80             # Created by DBIx::Class::Schema::Loader v0.07001 @ 2010-08-16 23:01:56
81             # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:O1wSuW826HpRzmvclfxeJw
82              
83              
84             # You can replace this text with custom content, and it will be preserved on regeneration
85             1;
86              
87             __END__