Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 3250f2ee

Von Moritz Bunkus vor etwa 11 Jahren hinzugefügt

  • ID 3250f2ee17441742890fe97b4fe5851626029441
  • Vorgänger 1f592a0f
  • Nachfolger 442b26e2

Update Pflichtenheftmodels auf DB-Struktur

Unterschiede anzeigen:

SL/DB/MetaSetup/RequirementSpecDependency.pm
],
primary_key_columns => [ 'depending_item_id', 'depended_item_id' ],
foreign_keys => [
depended_item => {
class => 'SL::DB::RequirementSpecItem',
key_columns => { depended_item_id => 'id' },
},
depending_item => {
class => 'SL::DB::RequirementSpecItem',
key_columns => { depending_item_id => 'id' },
},
],
);
1;
SL/DB/MetaSetup/RequirementSpecItem.pm
class => 'SL::DB::RequirementSpecItem',
key_columns => { parent_id => 'id' },
},
],
relationships => [
depended_items => {
map_class => 'SL::DB::RequirementSpecDependency',
map_from => 'depending_item',
map_to => 'depended_item',
type => 'many to many',
requirement_spec => {
class => 'SL::DB::RequirementSpec',
key_columns => { requirement_spec_id => 'id' },
},
depending_items => {
map_class => 'SL::DB::RequirementSpecDependency',
map_from => 'depended_item',
map_to => 'depending_item',
type => 'many to many',
risk => {
class => 'SL::DB::RequirementSpecRisk',
key_columns => { risk_id => 'id' },
},
],
);
SL/DB/RequirementSpecItem.pm
use SL::DB::Helper::ActsAsList;
__PACKAGE__->meta->add_relationship(
children => {
type => 'one to many',
class => 'SL::DB::RequirementSpecItem',
column_map => { id => 'parent_id' },
children => {
type => 'one to many',
class => 'SL::DB::RequirementSpecItem',
column_map => { id => 'parent_id' },
},
dependencies => {
map_class => 'SL::DB::RequirementSpecDependency',
map_from => 'depending_item',
map_to => 'depended_item',
type => 'many to many',
},
dependents => {
map_class => 'SL::DB::RequirementSpecDependency',
map_from => 'depended_item',
map_to => 'depending_item',
type => 'many to many',
},
);

Auch abrufbar als: Unified diff