Last active
December 20, 2015 06:38
-
-
Save horte/6086939 to your computer and use it in GitHub Desktop.
Example using MySQL IN statements with JDBI
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
@UseStringTemplate3StatementLocator | |
public interface ModelDao { | |
@RegisterMapper(ModelPropertyMapper.class) | |
@SqlQuery("select * from model_property where model_id in ( <modelIds> )") | |
public List<ModelProperty> findModelPropertiesByModelIds(@BindIn("modelIds") Collection<Long> modelIds); | |
} |
Author
horte
commented
Jul 26, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment