Last active
October 9, 2017 12:00
-
-
Save mkindika/6668e7ddb741944dfa613a4451dae71e to your computer and use it in GitHub Desktop.
indika.me
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| query.setMaxResults(1); | |
| List<T> list = query.getResultList(); | |
| if (!list.isEmpty()) { | |
| return list.get(0); | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment