-
Notifications
You must be signed in to change notification settings - Fork 16
@BindDisabled
xcesco edited this page Jan 23, 2017
·
2 revisions
Default behaviour, for a @BindType annotated class is to persist every fields. To exclude a specific field from binding, just use @BindDisabled annotation on field.
This annotation affects bind to XML/JSON/etc, sharepreference and sqlite conversion.
Don't use with allField = true
, otherwise an exception will be thrown during compilation.
@BindType
public class Bean {
public long id;
@BindDisabled
public String dummy;
public String name;
}
In Bean
definition, for example, field dummy
will be excluded from every persist convertion.
- Introduction
- Goals & Features
- Kotlin
- Immutable or Mutable Pojo
- Annotation Processor Args
- Credits
- Articles
- Benchmarks
- Setup
- Tutorial
- Usage
- Dependencies and inspirations
- Stackoverflow
- Documentation
- SQL logging
- Data source options
- Indices
- SQL Type adapter
- Global SQL Type adapter
- Constraints
- Live data: welcome Architectural components!!
- Paged Live data
- Dynamic parts
- Transactional and batch operations
- Async Transactional and batch operations
- Global transaction
- Support for immutable POJO
- Generate Content provider
- Generate Database schema generation
- Database migration
- BindSqlColumn
- BindContentProvider
- BindContentProviderEntry
- BindContentProviderPath
- BindDao
- BindDaoMany2Many
- BindDataSource
- BindDataSourceOptions
- BindDataSourceUpdateTask
- BindIndex
- BindSqlRelation
- BindSqlAdapter
- BindSqlChildSelect
- BindSqlDelete
- BindSqlDynamicOrderBy
- BindSqlDynamicWhere
- BindSqlDynamicWhereParams
- BindSqlInsert
- BindSqlPageSize
- BindSqlParam
- BindSqlSelect
- BindSqlUpdate
- BindSqlType
- BindSqlTransaction