Permalink
Browse files

Include key when converting an entity to a PersistentHashMap. Maybe c…

…onverting to String would be better.
  • Loading branch information...
1 parent 0a0a6b4 commit 31ef6bebb1e15aa9a39994ed1b0f2669921e7ba2 @duelinmarkers committed Apr 5, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/appengine_clj/datastore.clj
@@ -7,6 +7,6 @@
plus the entity's kind stored under :kind."
[entity]
(reduce #(assoc %1 (keyword (key %2)) (val %2))
- {:kind (.getKind entity)}
+ {:kind (.getKind entity) :key (.getKey entity)}
(.entrySet (.getProperties entity))))

0 comments on commit 31ef6be

Please sign in to comment.