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
Hello Jens,
Postmodern does not really do anything like join-slots. I never found them very workable in CLSQL (possibly because I didn't understand them well enough), so in Postmodern DAO objects are just simple wrappers for database records, and don't do anything fancy.
(Though of course, with some creative method wrapping you could make them do all kinds of bizarre things.)
Cheers, Marijn
postmodern-devel@common-lisp.net