Last active
December 11, 2015 11:39
-
-
Save aeells/4595649 to your computer and use it in GitHub Desktop.
Basic JDBI data access.
This file contains 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
@RegisterMapper(MyObjectResultSetMapper.class) public interface MyDao | |
{ | |
// get objects | |
@SqlQuery("SELECT * FROM list WHERE ... LIMIT 200") | |
List<MyObject> get(); | |
void close(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment