[postmodern-devel] How to use auto-id?

Vamsee Kanakala vamlists at gmail.com
Sun Feb 11 07:54:49 UTC 2007


Hi,

I'm not sure how to use auto-id in my deftable statement. I have
something like this:

(deftable cities ()
  ((id :type integer :initarg :id :accessor id)
   (name :type string :initarg :name :accessor name))
  (:class-name city)
  (:auto-id t))

However, if I use something like

(select-dao 'city)

To get the list of all cities, I get this error:

The assertion (= (LENGTH POSTMODERN::QUERY-FIELDS) POSTMODERN::N-FIELDS)
failed.

What am I doing wrong?

TIA,
Vamsee.



More information about the postmodern-devel mailing list