File: Artist.pm

package info (click to toggle)
libdbix-class-perl 0.08196-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,424 kB
  • sloc: perl: 22,328; sql: 362; makefile: 10
file content (17 lines) | stat: -rw-r--r-- 294 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package MyDatabase::Main::Result::Artist;

use warnings;
use strict;

use base qw/DBIx::Class::Core/;

__PACKAGE__->table('artist');

__PACKAGE__->add_columns(qw/ artistid name /);

__PACKAGE__->set_primary_key('artistid');

__PACKAGE__->has_many('cds' => 'MyDatabase::Main::Result::Cd');

1;