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