{"action":"created","issue":{"url":"https://api.github.com/repos/bossiernesto/arena-pers/issues/7","labels_url":"https://api.github.com/repos/bossiernesto/arena-pers/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/bossiernesto/arena-pers/issues/7/comments","events_url":"https://api.github.com/repos/bossiernesto/arena-pers/issues/7/events","html_url":"https://github.com/bossiernesto/arena-pers/issues/7","id":70203016,"number":7,"title":"Consistency check: getter and setter vs. attribute type","user":{"login":"bossiernesto","id":1045519,"avatar_url":"https://avatars.githubusercontent.com/u/1045519?v=3","gravatar_id":"","url":"https://api.github.com/users/bossiernesto","html_url":"https://github.com/bossiernesto","followers_url":"https://api.github.com/users/bossiernesto/followers","following_url":"https://api.github.com/users/bossiernesto/following{/other_user}","gists_url":"https://api.github.com/users/bossiernesto/gists{/gist_id}","starred_url":"https://api.github.com/users/bossiernesto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bossiernesto/subscriptions","organizations_url":"https://api.github.com/users/bossiernesto/orgs","repos_url":"https://api.github.com/users/bossiernesto/repos","events_url":"https://api.github.com/users/bossiernesto/events{/privacy}","received_events_url":"https://api.github.com/users/bossiernesto/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-22T18:37:01Z","updated_at":"2015-04-22T18:37:02Z","closed_at":null,"body":"**IMPORTANT: This enhancement is useless if issue 5 is solved. (\"Allow @PersistentField and @Relation annotations in attributes rather than getters\")\n**\n\nBut just in case it's a heavy work to annotate attributes, maybe there's a chance to add a consistency check between getter/setter/attribute, so you can avoid problems like:\ncase 1- there's an attribute called nomYApe, and getter getNomYape() \ncase 2- there's an attribute int cantidad, and getter is defined Integer getCantidad()\ncase 3- there's an attribute int cantidad, and getter is defined def getCantidad(), with type inference o dynamic typing like Groovy.\n\nFor now on, there's a good error message: \"Exception in thread \"main\" java.lang.RuntimeException: Se ha producido un error invocando setXXXXX\" for case 1, and not so good message for cases 2  and 3: \"Excepción: org.eclipse.core.runtime.AssertionFailedException: assertion failed: Could not read collection values\"\n\n\n\n----------------------------------------\n- Bitbucket: https://bitbucket.org/uqbar-project/arena-pers/issue/8\n- Originally reported by: Fernando Dodino\n- Originally created at: 2013-12-03T12:23:45.339\n"},"comment":{"url":"https://api.github.com/repos/bossiernesto/arena-pers/issues/comments/95295424","html_url":"https://github.com/bossiernesto/arena-pers/issues/7#issuecomment-95295424","issue_url":"https://api.github.com/repos/bossiernesto/arena-pers/issues/7","id":95295424,"user":{"login":"bossiernesto","id":1045519,"avatar_url":"https://avatars.githubusercontent.com/u/1045519?v=3","gravatar_id":"","url":"https://api.github.com/users/bossiernesto","html_url":"https://github.com/bossiernesto","followers_url":"https://api.github.com/users/bossiernesto/followers","following_url":"https://api.github.com/users/bossiernesto/following{/other_user}","gists_url":"https://api.github.com/users/bossiernesto/gists{/gist_id}","starred_url":"https://api.github.com/users/bossiernesto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bossiernesto/subscriptions","organizations_url":"https://api.github.com/users/bossiernesto/orgs","repos_url":"https://api.github.com/users/bossiernesto/repos","events_url":"https://api.github.com/users/bossiernesto/events{/privacy}","received_events_url":"https://api.github.com/users/bossiernesto/received_events","type":"User","site_admin":false},"created_at":"2015-04-22T18:37:02Z","updated_at":"2015-04-22T18:37:02Z","body":"Closed as issue #5 was accomplished\n\n----------------------------------------\nOriginal comment by: Fernando Dodino\n"}}