 (ds/defentity Author [^:key name])
 (ds/defentity Article [^:key title author body comment-count])
 (ds/defentity Comment [^:key subject article author body])
+(ds/defentity Note [author body])
 
 
 (deftest basics

          (is (= comment-2 (ds/save! comment-2))))))
    (let [article (ds/retrieve Article "Article 1")]
      (is (= 2 (:comment-count article))))))

(ns test.appengine-magic.services.datastore
  (:use clojure.test)
  (:require [appengine-magic.services.datastore :as ds]
            [appengine-magic.testing :as ae-testing])
  (:import com.google.appengine.api.datastore.KeyFactory))


(use-fixtures :each (ae-testing/local-services :all))
