r8264: rename entities.xml to entities.inc
[hyperobject.git] / mop.lisp
index 528c99f58c77d311270ab78f796fa0ded9b4dd22..5307f3ed545f07ed60be74ca9ee88378f1ab2cce 100644 (file)
--- a/mop.lisp
+++ b/mop.lisp
@@ -64,7 +64,9 @@
             :documentation "Unique ID for the class")
    (default-view :initform nil :initarg :default-view :accessor default-view
                 :documentation "The default view for a class")
-
+   (documementation :initform nil :initarg :documentation
+                   :documentation "Documentation string for hyperclass.")
+   
    ;; SQL commands
    (create-table-cmd :initform nil :reader create-table-cmd)
    (create-indices-cmds :initform nil :reader create-index-cmds)
@@ -309,6 +311,8 @@ SQL name"
   (case (base-value-type value-type)
     ((:string :cdata :varchar :char)
      '(or null string))
+    (:datetime
+     '(or null integer))
     (:character
      '(or null character))
     (:fixnum
@@ -345,6 +349,8 @@ SQL name"
        :single-float)
        (:double-float
        :double-float)
+       (:datetime
+        :long-integer)
        (otherwise
        :text))
      length)))
@@ -442,7 +448,7 @@ SQL name"
 (defun finalize-documentation (cl)
   "Calculate class documentation slot"
   (let ((*print-circle* nil))
-    (setf (documentation (class-name cl) 'class)
+    (setf (documentation cl 'type)
          (format nil "Hyperobject~A~A~A~A"
                  (aif (user-name cl)
                       (format nil ": ~A" it ""))