{"action":"closed","issue":{"url":"https://api.github.com/repos/springfox/springfox/issues/1058","labels_url":"https://api.github.com/repos/springfox/springfox/issues/1058/labels{/name}","comments_url":"https://api.github.com/repos/springfox/springfox/issues/1058/comments","events_url":"https://api.github.com/repos/springfox/springfox/issues/1058/events","html_url":"https://github.com/springfox/springfox/issues/1058","id":117504352,"number":1058,"title":"@ModelAttribute object is not mapped when the setters are not void","user":{"login":"diegogargaro","id":5324438,"avatar_url":"https://avatars.githubusercontent.com/u/5324438?v=3","gravatar_id":"","url":"https://api.github.com/users/diegogargaro","html_url":"https://github.com/diegogargaro","followers_url":"https://api.github.com/users/diegogargaro/followers","following_url":"https://api.github.com/users/diegogargaro/following{/other_user}","gists_url":"https://api.github.com/users/diegogargaro/gists{/gist_id}","starred_url":"https://api.github.com/users/diegogargaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diegogargaro/subscriptions","organizations_url":"https://api.github.com/users/diegogargaro/orgs","repos_url":"https://api.github.com/users/diegogargaro/repos","events_url":"https://api.github.com/users/diegogargaro/events{/privacy}","received_events_url":"https://api.github.com/users/diegogargaro/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/springfox/springfox/labels/question","name":"question","color":"006b75"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/springfox/springfox/milestones/34","html_url":"https://github.com/springfox/springfox/milestones/2.3.0","labels_url":"https://api.github.com/repos/springfox/springfox/milestones/34/labels","id":1249355,"number":34,"title":"2.3.0","description":"","creator":{"login":"dilipkrish","id":73257,"avatar_url":"https://avatars.githubusercontent.com/u/73257?v=3","gravatar_id":"","url":"https://api.github.com/users/dilipkrish","html_url":"https://github.com/dilipkrish","followers_url":"https://api.github.com/users/dilipkrish/followers","following_url":"https://api.github.com/users/dilipkrish/following{/other_user}","gists_url":"https://api.github.com/users/dilipkrish/gists{/gist_id}","starred_url":"https://api.github.com/users/dilipkrish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dilipkrish/subscriptions","organizations_url":"https://api.github.com/users/dilipkrish/orgs","repos_url":"https://api.github.com/users/dilipkrish/repos","events_url":"https://api.github.com/users/dilipkrish/events{/privacy}","received_events_url":"https://api.github.com/users/dilipkrish/received_events","type":"User","site_admin":false},"open_issues":20,"closed_issues":118,"state":"open","created_at":"2015-08-11T03:11:58Z","updated_at":"2015-12-02T16:48:22Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-11-18T03:18:02Z","updated_at":"2015-12-02T16:48:21Z","closed_at":"2015-12-02T16:48:21Z","body":"I have this controller:\r\n```\r\n@RestController\r\npublic class TestController {\r\n    public Result find(@ModelAttribute SomeFilters filters) {\r\n        ...\r\n    }\r\n}\r\n```\r\nIf the POJO for the ModelAttribute has the setters like this (returning itself):\r\n```\r\npublic class SomeFilters {\r\n    private String param;\r\n    \r\n   public SomeFilters setParam(String param) { this.param = param; return this; }\r\n   public SomeFilters getParam(String param) { this.param = param; }\r\n}\r\n```\r\nIt will not map the property **param** as a QueryParameter. The only way that works is if the setter  returns void:\r\n```\r\npublic void setParam(String param) { this.param = param; }\r\n```\r\n\r\nIs this a known problem / limitation? I didn't find any reference about this.\r\n\r\nThanks!\r\nDiego"}}