Sha256: 656104b57d9750cc19ad8c330bd82c4d041bb2cc2ce4803ab3ad086a5894d21b

Contents?: true

Size: 1.04 KB

Versions: 32

Compression:

Stored size: 1.04 KB

Contents

module SfxDb
  class Object < SfxDbBase
    self.table_name = "OBJECT"
    self.primary_key = "OBJECT_ID"

    #has_many :issns,
    #          :foreign_key => 'OBJECT_ID'
    has_many  :titles,
              :foreign_key => 'OBJECT_ID',
              :class_name => 'SfxDb::Title'
              
    has_many   :publishers,
              :foreign_key => 'OBJECT_ID',
              :class_name => 'SfxDb::Publisher'
              
    has_many  :az_titles,
              :foreign_key=>'OBJECT_ID',
              :class_name => 'SfxDb::AzTitle'

    has_many :primary_isbns,
             :class_name => 'SfxDb::Isbn',
             :foreign_key => 'OBJECT_ID',
             :conditions => "ISBN_HIERARCHY = 'PRIMARY'"

    has_many :primary_issns,
             :class_name => 'SfxDb::Issn',
             :foreign_key => 'OBJECT_ID',
             :conditions => "ISSN_HIERARCHY = 'PRIMARY'"

    has_many :main_titles,
             :class_name => 'SfxDb::Title',
             :foreign_key => 'OBJECT_ID',
             :conditions => "TITLE_TYPE = 'main'"
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
umlaut-3.0.0alpha12 app/models/sfx_db/object.rb
umlaut-3.0.0alpha11 app/models/sfx_db/object.rb
umlaut-3.0.0alpha10 app/models/sfx_db/object.rb
umlaut-3.0.0alpha9 app/models/sfx_db/object.rb
umlaut-3.0.0alpha8 app/models/sfx_db/object.rb
umlaut-3.0.0alpha7 app/models/sfx_db/object.rb
umlaut-3.0.0alpha6 app/models/sfx_db/object.rb
umlaut-3.0.0alpha5 app/models/sfx_db/object.rb
umlaut-3.0.0alpha4 app/models/sfx_db/object.rb
umlaut-3.0.0alpha3 app/models/sfx_db/object.rb
umlaut-3.0.0alpha2 app/models/sfx_db/object.rb
umlaut-3.0.0alpha1 app/models/sfx_db/object.rb