Skip to content

Commit 72ec630

Browse files
committed
Add auto-generated accessors with :conc-name only when :reader and :writer are not specified.
1 parent 8da8c80 commit 72ec630

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/core/dao/column.lisp

+6-4
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@
2929
(let ((accessor (intern
3030
(format nil "~:@(~A~A~)" *conc-name* name)
3131
*package*)))
32-
(pushnew accessor readers)
33-
(pushnew `(setf ,accessor) writers)
34-
(setf (getf rest-initargs :readers) readers)
35-
(setf (getf rest-initargs :writers) writers)))
32+
(unless readers
33+
(pushnew accessor readers)
34+
(setf (getf rest-initargs :readers) readers))
35+
(unless writers
36+
(pushnew `(setf ,accessor) writers)
37+
(setf (getf rest-initargs :writers) writers))))
3638

3739
(when inflate
3840
(setf (getf rest-initargs :inflate) (eval inflate)))

0 commit comments

Comments
 (0)