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

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

Comments

Projects
None yet
2 participants
@cowwoc
Contributor

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

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Oct 3, 2014

Member

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

Member

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

@timowest timowest closed this in #986 Oct 20, 2014

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