--- /dev/null
+package FrBr::Books::Db::Bindungsarten;
+
+# $Id: Absence.pm 305 2008-03-14 13:53:44Z fbrehm $
+# $URL$
+
+use strict;
+use warnings;
+
+use base 'DBIx::Class';
+
+__PACKAGE__->load_components("Core");
+__PACKAGE__->table("bindungsarten");
+__PACKAGE__->add_columns(
+ "id" => { data_type => "INT", default_value => undef, is_nullable => 0, size => 10 },
+ "art_name" => { data_type => "VARCHAR", default_value => undef, is_nullable => 0, size => 250, },
+);
+__PACKAGE__->set_primary_key("id");
+__PACKAGE__->add_unique_constraint("art_name", ["art_name"]);
+
+1;
"id" => { data_type => "INT", default_value => undef, is_nullable => 0, size => 10 },
"title" => { data_type => "VARCHAR", default_value => undef, is_nullable => 0, size => 250, },
"title_original" => { data_type => "VARCHAR", default_value => undef, is_nullable => 1, size => 250, },
+ "bindungsart_id" => { data_type => "INT", default_value => undef, is_nullable => 1, size => 10 },
"verlags_id" => { data_type => "INT", default_value => undef, is_nullable => 0, size => 10 },
"isbn" => { data_type => "VARCHAR", default_value => undef, is_nullable => 1, size => 20, },
"buch_nr" => { data_type => "VARCHAR", default_value => undef, is_nullable => 1, size => 100, },
"ausgabejahr" => { data_type => "MEDIUMINT", default_value => undef, is_nullable => 1, size => 8, },
"druckjahr" => { data_type => "MEDIUMINT", default_value => undef, is_nullable => 1, size => 8, },
+ "seiten" => { data_type => "INT", default_value => undef, is_nullable => 1, size => 10 },
"preis" => { data_type => "FLOAT", default_value => undef, is_nullable => 1, size => 32 },
"waehrungs_id" => { data_type => "INT", default_value => undef, is_nullable => 1, size => 10 },
);
__PACKAGE__->set_primary_key("id");
-__PACKAGE__->might_have( 'waehrung' => 'FrBr::Books::Db::Waehrungen', { 'foreign.id' => 'self.waehrungs_id' } );
-__PACKAGE__->might_have( 'verlag' => 'FrBr::Books::Db::Verlage', { 'foreign.id' => 'self.verlags_id' } );
+__PACKAGE__->might_have( 'waehrung' => 'FrBr::Books::Db::Waehrungen', { 'foreign.id' => 'self.waehrungs_id' } );
+__PACKAGE__->might_have( 'verlag' => 'FrBr::Books::Db::Verlage', { 'foreign.id' => 'self.verlags_id' } );
+__PACKAGE__->might_have( 'bindungsart' => 'FrBr::Books::Db::Bindungsarten', { 'foreign.id' => 'self.bindungsart_id' } );
# Created by DBIx::Class::Schema::Loader v0.04004 @ 2008-03-17 17:53:52
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GjY80NXBYER1XlWgPukp+A
my $b_search_params = undef;
my $other_params = {};
$other_params->{'order_by'} = [ 'title' ];
- $other_params->{'join'} = [ 'waehrung', 'verlag' ];
+ $other_params->{'join'} = [ 'waehrung', 'verlag', 'bindungsart' ];
$other_params->{'select'} = [
'me.id',
'me.title',
'me.title_original',
+ 'me.bindungsart_id',
+ 'bindungsart.art_name AS `bindungsart`',
'me.verlags_id',
'me.isbn',
'me.buch_nr',
'me.ausgabejahr',
'me.druckjahr',
+ 'me.seiten',
'me.preis',
'me.waehrungs_id',
'waehrung.waehrungs_kuerzel',
'waehrung.umrechnung_in_euro',
'verlag.name_short AS `verlagsname_short`',
'verlag.name_long AS `verlagsname_long`',
+
];
$other_params->{'as'} = [
'id',
'title',
'title_original',
+ 'bindungsart_id',
+ 'bindungsart',
'verlags_id',
'isbn',
'buch_nr',
'ausgabejahr',
'druckjahr',
+ 'seiten',
'preis',
'waehrungs_id',
'waehrungs_kuerzel',
$buch->{'id'} = $id;
$buch->{'title'} = $book->title();
$buch->{'title_original'} = $book->title_original();
+ $buch->{'bindungsart_id'} = $book->bindungsart_id();
+ $buch->{'bindungsart'} = $book->get_column('bindungsart');
$buch->{'verlags_id'} = $book->verlags_id();
$buch->{'isbn'} = $book->isbn();
$buch->{'buch_nr'} = $book->buch_nr();
$buch->{'ausgabejahr'} = $book->ausgabejahr();
$buch->{'druckjahr'} = $book->druckjahr();
+ $buch->{'seiten'} = $book->seiten();
$buch->{'preis'} = $book->preis();
$buch->{'waehrungs_id'} = $book->waehrungs_id();
$buch->{'waehrungs_kuerzel'} = $book->get_column('waehrungs_kuerzel');