{"pull_request":{"state":"closed","deletions":2,"user":{"avatar_url":"https://secure.gravatar.com/avatar/6afd1d1327b5825141358983e229ad5d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"6afd1d1327b5825141358983e229ad5d","url":"https://api.github.com/users/codeconsole","login":"codeconsole","id":544750},"merged_by":null,"updated_at":"2011-11-17T04:40:20Z","commits":1,"base":{"ref":"master","user":{"avatar_url":"https://secure.gravatar.com/avatar/137d3908243acfc30e126615d59d4e6d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"137d3908243acfc30e126615d59d4e6d","url":"https://api.github.com/users/glaforge","login":"glaforge","id":47907},"repo":{"name":"gaelyk","master_branch":null,"pushed_at":"2011-11-16T23:53:10Z","fork":false,"clone_url":"https://github.com/glaforge/gaelyk.git","updated_at":"2011-11-17T02:19:30Z","homepage":"http://gaelyk.appspot.com","open_issues":8,"private":false,"language":"Groovy","forks":35,"svn_url":"https://svn.github.com/glaforge/gaelyk","url":"https://api.github.com/repos/glaforge/gaelyk","owner":{"avatar_url":"https://secure.gravatar.com/avatar/137d3908243acfc30e126615d59d4e6d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"137d3908243acfc30e126615d59d4e6d","url":"https://api.github.com/users/glaforge","login":"glaforge","id":47907},"html_url":"https://github.com/glaforge/gaelyk","description":"A lightweight Groovy toolkit for Google App Engine Java","size":31748,"watchers":162,"id":253653,"git_url":"git://github.com/glaforge/gaelyk.git","created_at":"2009-07-17T15:29:39Z","ssh_url":"git@github.com:glaforge/gaelyk.git"},"label":"glaforge:master","sha":"2fdcf6bad8db71811036385f1164a1655328cd7b"},"comments":0,"closed_at":"2011-11-17T04:40:20Z","diff_url":"https://github.com/glaforge/gaelyk/pull/87.diff","head":{"ref":"null-coercion","user":{"avatar_url":"https://secure.gravatar.com/avatar/6afd1d1327b5825141358983e229ad5d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"6afd1d1327b5825141358983e229ad5d","url":"https://api.github.com/users/codeconsole","login":"codeconsole","id":544750},"repo":{"name":"gaelyk-1","master_branch":null,"pushed_at":"2011-11-17T01:51:31Z","fork":true,"clone_url":"https://github.com/codeconsole/gaelyk-1.git","updated_at":"2011-11-17T01:51:31Z","homepage":"http://gaelyk.appspot.com","open_issues":0,"private":false,"language":"Groovy","forks":0,"svn_url":"https://svn.github.com/codeconsole/gaelyk-1","url":"https://api.github.com/repos/codeconsole/gaelyk-1","owner":{"avatar_url":"https://secure.gravatar.com/avatar/6afd1d1327b5825141358983e229ad5d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"6afd1d1327b5825141358983e229ad5d","url":"https://api.github.com/users/codeconsole","login":"codeconsole","id":544750},"html_url":"https://github.com/codeconsole/gaelyk-1","description":"A lightweight Groovy toolkit for Google App Engine Java","size":140,"watchers":1,"id":2218791,"git_url":"git://github.com/codeconsole/gaelyk-1.git","created_at":"2011-08-16T23:03:42Z","ssh_url":"git@github.com:codeconsole/gaelyk-1.git"},"label":"codeconsole:null-coercion","sha":"6358794d0327c2f156ecffced4d72c0dedaec154"},"additions":3,"url":"https://api.github.com/repos/glaforge/gaelyk/pulls/87","merged":false,"merged_at":null,"body":"If the key has not been set on a POGO, an exception will occur:\r\n\r\n    class Person {\r\n        @Key Long id\r\n        String name\r\n    }\r\n\r\n    def p = new Person(name: 'Scott')\r\n    Entity e = p as Entity  // EXCEPTION\r\n\r\nThis patch allows for null keys.\r\n\r\nAlso, for some reason I was getting an exception with p.getProperty(key).\r\nIs this because my POGO is a POJO (Java class)?\r\n\r\nI changed the code to props[key].value() and it works fine, so I would prefer if we use props[key].value()  instead.","html_url":"https://github.com/glaforge/gaelyk/pull/87","_links":{"comments":{"href":"https://api.github.com/repos/glaforge/gaelyk/issues/87/comments"},"html":{"href":"https://github.com/glaforge/gaelyk/pull/87"},"review_comments":{"href":"https://api.github.com/repos/glaforge/gaelyk/pulls/87/comments"},"self":{"href":"https://api.github.com/repos/glaforge/gaelyk/pulls/87"}},"issue_url":"https://github.com/glaforge/gaelyk/issues/87","review_comments":0,"title":"Pogo to Entity Coercion - Allow null keys on Pogos","number":87,"mergeable":true,"id":502886,"changed_files":1,"patch_url":"https://github.com/glaforge/gaelyk/pull/87.patch","created_at":"2011-11-17T01:59:46Z"},"action":"closed","number":87}