[postmodern-devel] Join Slots

Jens Teich info at jensteich.de
Thu Aug 9 18:57:36 UTC 2007


I'm considering to change from clsql to postmodern because I need
unicode support. In clsql the following viewclass definition is possible
with join slots:

(clsql:def-view-class elements ()
  ((guid    :reader element-guid :db-kind :key  :type (string 36))
   (lang_id                      :db-kind :key  :type (string 2))
    ... more ... 'normal' slots)
   (produkt
    :reader product-element
    :db-kind :join
    :db-info (:join-class produkte
              :home-key (guid_objekt lang_id)
              :foreign-key (guid lang_id)
              :set nil)))
  (:base-table project-elements))
  

so that I can access the joined records easily via

(product-element instance-of-element)

How do I do this with postmodern?

Thanks
Jens



More information about the postmodern-devel mailing list