mvysny / vok-orm

Mapping rows from a SQL database to POJOs in its simplest form
MIT License
21 stars 4 forks source link

implement findSingleBy #2

Closed mvysny closed 6 years ago

mvysny commented 6 years ago

The findBy(1) will not fail if two or more items are found. Having findSingleBy could come handy. There could also be getBy which would fail unless exactly one item is found.

mvysny commented 6 years ago

Implemented getBy{} and findSpecificBy{}. The findSingleBy{} was not a good name since it suggested that the function would fail if there were no matching entities.