@Target(value=TYPE) @Retention(value=RUNTIME) public @interface Dao
Example:
@Dao public interface ProductDao { @Select Product findById(UUID productId); @Insert void save(Product product); @Delete void delete(Product product); }DAO instances are created via
DaoFactory
methods.
DAO interfaces can define the following methods:
Copyright © 2017–2021. All rights reserved.