@Target(value=TYPE) @Retention(value=RUNTIME) public @interface Mapper
Example:
@Mapper
public interface InventoryMapper {
@DaoFactory
ProductDao productDao();
}
The mapper annotation processor will generate an implementation, and a builder that allows you to
create an instance from a CqlSession:
InventoryMapper inventoryMapper = new InventoryMapperBuilder(session).build();By default, the builder's name is the name of the interface with the suffix "Builder", and it resides in the same package. You can also use a custom name with
builderName().
The interface should define one or more DaoFactory methods.
| Modifier and Type | Optional Element and Description |
|---|---|
String |
builderName
The fully-qualified name of the builder class that will get generated in order to
create instances of the manager, for example "com.mycompany.MyCustomBuilder".
|
public abstract String builderName
If this is left empty (the default), the builder's name is the name of the interface with the suffix "Builder", and it * resides in the same package.
Copyright © 2017–2023. All rights reserved.