@Target(value=PARAMETER) @Retention(value=RUNTIME) public @interface DaoTable
DaoFactory
method that indicates the table to create a DAO
for.
Example:
@Mapper public interface InventoryMapper { ProductDao productDao(@DaoTable String table); }The annotated parameter can be a
String
or CqlIdentifier
. If it is present, the
value will be injected in the DAO instance, where it will be used in generated queries, and can
be substituted in text queries. This allows you to reuse the same DAO for different tables.DaoFactory
Copyright © 2017–2019. All rights reserved.