Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't support hibernate annotation or others for service body parameter. #618

Closed
maratfdrv opened this issue Feb 18, 2016 · 3 comments
Closed

Comments

@maratfdrv
Copy link

    @RequestMapping(value = "/register", method = RequestMethod.POST)
    public SessionModel register(
        @Valid RegisterModel registerModel
    ) {
        return new SessionModel(userService.register(registerModel));
    }

registerModel should be body parameter.

@RichardHightower
Copy link
Member

if RegisterModel is just a pojo.. this should work flawlessly.. can you help me understand what is happening and provide some more background.

@maratfdrv
Copy link
Author

This happens in RequestMetaBuild.addParams. if parameter has annotation qbit thinks it should be one of requestParam, headerParam or pathParam and qbit doesn't think about parameter as body param if parameter has other annotations.

@RichardHightower
Copy link
Member

ic... Can you create a PR?

maratfdrv pushed a commit to maratfdrv/qbit that referenced this issue Feb 29, 2016
RichardHightower added a commit that referenced this issue Mar 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants