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

Clarify Javadoc for DetachableQuery.unique(), list() #984

Closed
cowwoc opened this issue Oct 3, 2014 · 1 comment
Closed

Clarify Javadoc for DetachableQuery.unique(), list() #984

cowwoc opened this issue Oct 3, 2014 · 1 comment
Labels
Milestone

Comments

@cowwoc
Copy link
Contributor

@cowwoc cowwoc commented Oct 3, 2014

Both Javadoc methods talk about creating "a projection expression for the given projection". There is no mention whether unique() ensures that exactly one result is returned (is it the same as Query.uniqueResult()?). There is no explanation of the difference between list() and unique().

@timowest
Copy link
Member

@timowest timowest commented Oct 3, 2014

I added a PR with improvements to the javadocs. Concerning unique it should be single instead. This will be fixed in 4.0: #687

@timowest timowest added this to the 3.5.1 milestone Oct 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants
You can’t perform that action at this time.