File Coverage

blib/lib/Bio/Chado/Schema/Result/NaturalDiversity/NdExperimentProject.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::NaturalDiversity::NdExperimentProject;
2             BEGIN {
3 6     6   2677 $Bio::Chado::Schema::Result::NaturalDiversity::NdExperimentProject::AUTHORITY = 'cpan:RBUELS';
4             }
5             BEGIN {
6 6     6   104 $Bio::Chado::Schema::Result::NaturalDiversity::NdExperimentProject::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   36 use strict;
  6         16  
  6         99  
13 6     6   27 use warnings;
  6         15  
  6         144  
14              
15 6     6   33 use base 'DBIx::Class::Core';
  6         14  
  6         886  
16              
17              
18              
19             __PACKAGE__->table("nd_experiment_project");
20              
21              
22             __PACKAGE__->add_columns(
23             "nd_experiment_project_id",
24             {
25             data_type => "integer",
26             is_auto_increment => 1,
27             is_nullable => 0,
28             sequence => "nd_experiment_project_nd_experiment_project_id_seq",
29             },
30             "project_id",
31             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
32             "nd_experiment_id",
33             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
34             );
35             __PACKAGE__->set_primary_key("nd_experiment_project_id");
36              
37              
38             __PACKAGE__->belongs_to(
39             "nd_experiment",
40             "Bio::Chado::Schema::Result::NaturalDiversity::NdExperiment",
41             { nd_experiment_id => "nd_experiment_id" },
42             {
43             cascade_copy => 0,
44             cascade_delete => 0,
45             is_deferrable => 1,
46             on_delete => "CASCADE",
47             on_update => "CASCADE",
48             },
49             );
50              
51              
52             __PACKAGE__->belongs_to(
53             "project",
54             "Bio::Chado::Schema::Result::Project::Project",
55             { project_id => "project_id" },
56             {
57             cascade_copy => 0,
58             cascade_delete => 0,
59             is_deferrable => 1,
60             on_delete => "CASCADE",
61             on_update => "CASCADE",
62             },
63             );
64              
65              
66             # Created by DBIx::Class::Schema::Loader v0.07001 @ 2010-08-16 23:01:56
67             # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RGSzBo3giGp4AHXsc6K0Zg
68              
69              
70             # You can replace this text with custom content, and it will be preserved on regeneration
71             1;
72              
73             __END__