File: CodeName.pm

package info (click to toggle)
librose-db-object-perl 1%3A0.822-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,416 kB
  • sloc: perl: 79,681; sql: 28; makefile: 7
file content (23 lines) | stat: -rwxr-xr-x 452 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package MyTest::RDBO::Simple::CodeName;

use strict;

use Rose::DB::Object;
our @ISA = qw(Rose::DB::Object);

__PACKAGE__->meta->table('rose_db_object_test_code_names');
__PACKAGE__->meta->columns(qw(id product_id name));
__PACKAGE__->meta->primary_key_columns('id');

__PACKAGE__->meta->foreign_keys
(
  product =>
  {
    class => 'MyTest::RDBO::Simple::Product',
    key_columns => { product_id => 'id' },
  },
);

__PACKAGE__->meta->initialize;

1;