Annotation Type BindBeanList


@Retention(RUNTIME) @Target(PARAMETER) public @interface BindBeanList
Binds each property for each value in the annotated Iterable or array/varargs argument, and defines a named attribute as a comma-separated list of each bound parameter name. Used to create query similar to: select * from things where (id, name) in ((1,'abc'),(2,'def'),(3,'ghi'))
 @SqlQuery("select * from things where (id, name) in (<keys>)")
 List<Thing> getThings(@BindBeanList(value = "keys", propertyNames = {"id", "name"}) ThingKey... thingKeys)
 

Throws IllegalArgumentException if the argument is not an array or Iterable.