{"action":"closed","issue":{"url":"https://api.github.com/repos/greenrobot/greenDAO/issues/332","repository_url":"https://api.github.com/repos/greenrobot/greenDAO","labels_url":"https://api.github.com/repos/greenrobot/greenDAO/issues/332/labels{/name}","comments_url":"https://api.github.com/repos/greenrobot/greenDAO/issues/332/comments","events_url":"https://api.github.com/repos/greenrobot/greenDAO/issues/332/events","html_url":"https://github.com/greenrobot/greenDAO/issues/332","id":151645333,"number":332,"title":"Method duplicated when already defined on //KEEP METHODS region","user":{"login":"daybson","id":3179898,"avatar_url":"https://avatars.githubusercontent.com/u/3179898?v=3","gravatar_id":"","url":"https://api.github.com/users/daybson","html_url":"https://github.com/daybson","followers_url":"https://api.github.com/users/daybson/followers","following_url":"https://api.github.com/users/daybson/following{/other_user}","gists_url":"https://api.github.com/users/daybson/gists{/gist_id}","starred_url":"https://api.github.com/users/daybson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daybson/subscriptions","organizations_url":"https://api.github.com/users/daybson/orgs","repos_url":"https://api.github.com/users/daybson/repos","events_url":"https://api.github.com/users/daybson/events{/privacy}","received_events_url":"https://api.github.com/users/daybson/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-04-28T13:45:33Z","updated_at":"2016-07-11T11:48:56Z","closed_at":"2016-07-11T11:48:56Z","body":"I have some gets/sets in my bean class \"People\", like `getSecurityNumber, getPhone`, etc.. This fields are encrypted before be stored on database, and decrypted when I need to show them on UI.\r\n\r\n`txt.setText(cryptAgent.Decrypt(people.getPhone()));`\r\n\r\nTo avoid to forget to use an cript object to decrypt the information before show it, I defined the getPhone on the //KEEP FIELDS region of my People class. But when I need change something on my entity and recriate the model, greenDAO creates a new getPhone() outside `//KEEP METHODS` region, duplicating the method.\r\n\r\nIs possible implement some fix or changing to make greenDAO look for the method on `//KEEP METHODS` before, and if it's found, do not recreate it? This could be very usefull for a large set of situations involving validations or formatation before storing/showing the information.\r\n\r\nThanks."}}
{"actor":{"display_login":"greenrobot-team"}}