:initarg :height)
(married :db-kind :base :accessor married :type boolean :nulls-ok t
:initarg :married)
- (birthday :nulls-ok t :type wall-time :initarg :birthday)
+ (birthday :nulls-ok t :type clsql-base:wall-time :initarg :birthday)
(hobby :db-kind :virtual :initarg :hobby :initform nil)))
(def-view-class employee (person)
result))
-#+(or cmu scl sbcl openmcl)
(defmethod validate-superclass ((class standard-db-class)
(superclass standard-class))
t)
(let ((all-slots (mapcar #'frob-slot slots)))
(setq all-slots (remove-if #'not-db-col all-slots))
(setq all-slots (stable-sort all-slots #'string< :key #'car))
- (setf (object-definition class) all-slots
- (key-slots class) (remove-if-not (lambda (slot)
- (eql (slot-value slot 'db-kind)
- :key))
- (class-slots class))))))
-
-#+allegro
+ (setf (object-definition class) all-slots))
+ #-(or allegro openmcl)
+ (setf (key-slots class) (remove-if-not (lambda (slot)
+ (eql (slot-value slot 'db-kind)
+ :key))
+ (class-slots class)))))
+
+#+(or allegro openmcl)
(defmethod finalize-inheritance :after ((class standard-db-class))
(setf (key-slots class) (remove-if-not (lambda (slot)
(eql (slot-value slot 'db-kind)