projects
/
clsql.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r9260: 6 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
[clsql.git]
/
tests
/
test-init.lisp
diff --git
a/tests/test-init.lisp
b/tests/test-init.lisp
index 99c3a47c5abbd215a1f472ba7700d2d3c22fd097..a1f700e90c0f5374cf8d6ce087df1c2458c19cab 100644
(file)
--- a/
tests/test-init.lisp
+++ b/
tests/test-init.lisp
@@
-64,14
+64,14
@@
:accessor employee-email
:type (string 100)
:initarg :email)
:accessor employee-email
:type (string 100)
:initarg :email)
- (companyid
+ (
e
companyid
:type integer
:initarg :companyid)
(company
:accessor employee-company
:db-kind :join
:db-info (:join-class company
:type integer
:initarg :companyid)
(company
:accessor employee-company
:db-kind :join
:db-info (:join-class company
- :home-key companyid
+ :home-key
e
companyid
:foreign-key companyid
:set nil))
(managerid
:foreign-key companyid
:set nil))
(managerid
@@
-89,7
+89,7
@@
:db-kind :join
:db-info (:join-class employee-address
:home-key emplid
:db-kind :join
:db-info (:join-class employee-address
:home-key emplid
- :foreign-key emplid
+ :foreign-key
a
emplid
:target-slot address
:set t)))
(:base-table employee))
:target-slot address
:set t)))
(:base-table employee))
@@
-123,7
+123,7
@@
:db-kind :join
:db-info (:join-class employee
:home-key (companyid groupid)
:db-kind :join
:db-info (:join-class employee
:home-key (companyid groupid)
- :foreign-key (companyid groupid)
+ :foreign-key (
e
companyid groupid)
:set t)))
(:base-table company))
:set t)))
(:base-table company))
@@
-154,15
+154,16
@@
;; many employees can reside at many addressess
(def-view-class employee-address ()
;; many employees can reside at many addressess
(def-view-class employee-address ()
- ((emplid :type integer
+ ((
a
emplid :type integer
:initarg :emplid)
:initarg :emplid)
- (addressid :type integer
+ (a
a
ddressid :type integer
:initarg :addressid)
(address :db-kind :join
:db-info (:join-class address
:initarg :addressid)
(address :db-kind :join
:db-info (:join-class address
- :home-key addressid
+ :home-key a
a
ddressid
:foreign-key addressid
:foreign-key addressid
- :retrieval :immediate))))
+ :retrieval :immediate)))
+ (:base-table "ea_join"))
(defun test-connect-to-database (db-type spec)
(when (db-backend-has-create/destroy-db? db-type)
(defun test-connect-to-database (db-type spec)
(when (db-backend-has-create/destroy-db? db-type)