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.5 app/models/sfx_db/object.rb
umlaut-3.0.4 app/models/sfx_db/object.rb
umlaut-3.0.3 app/models/sfx_db/object.rb
umlaut-3.0.2 app/models/sfx_db/object.rb
umlaut-3.0.1 app/models/sfx_db/object.rb
umlaut-3.0.0 app/models/sfx_db/object.rb
umlaut-3.0.0rc1 app/models/sfx_db/object.rb
umlaut-3.0.0beta10 app/models/sfx_db/object.rb
umlaut-3.0.0beta9 app/models/sfx_db/object.rb
umlaut-3.0.0beta8 app/models/sfx_db/object.rb
umlaut-3.0.0beta7 app/models/sfx_db/object.rb
umlaut-3.0.0beta6 app/models/sfx_db/object.rb
umlaut-3.0.0beta5 app/models/sfx_db/object.rb
umlaut-3.0.0beta4 app/models/sfx_db/object.rb
umlaut-3.0.0beta3 app/models/sfx_db/object.rb
umlaut-3.0.0beta2 app/models/sfx_db/object.rb
umlaut-3.0.0beta1 app/models/sfx_db/object.rb
umlaut-3.0.0alpha15 app/models/sfx_db/object.rb
umlaut-3.0.0alpha14 app/models/sfx_db/object.rb
umlaut-3.0.0alpha13 app/models/sfx_db/object.rb