@Target(value=PARAMETER) @Retention(value=RUNTIME) public @interface DaoProfile
DaoFactory method that indicates the execution profile to
create a DAO for.
Example:
* @Mapper
* public interface InventoryMapper {
* ProductDao productDao(@DaoProfile String executionProfile);
* }
*
The annotated parameter can be a String or DriverExecutionProfile. If it is
present, the value will be injected in the DAO instance, where it will be used in generated
queries. This allows you to reuse the same DAO for different execution profiles.DaoFactoryCopyright © 2017–2020. All rights reserved.