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

Update the uses of createParentQuery to only select the id #14

Open
stopyoukid opened this issue Apr 21, 2015 · 0 comments
Open

Update the uses of createParentQuery to only select the id #14

stopyoukid opened this issue Apr 21, 2015 · 0 comments

Comments

@stopyoukid
Copy link
Contributor

In OneToManyCrudController we are using createParentQuery to query for the parent item to check for existence and to assign it on the child model (https://github.com/atsid/play-crud/blob/master/app/com/atsid/play/controllers/OneToManyCrudController.java#L101). We only need the "id" property on the parent, the rest of the fields are unnecessary. It could also lead to problems with serialization if some of the fields returned from the query contain looping references.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant