-
Notifications
You must be signed in to change notification settings - Fork 16
@BindIndex
xcesco edited this page May 2, 2018
·
3 revisions
Annotation used to define table's indexes. It can be used in @BindTable annotation.
-
value: an array of fields used for index definition. Every field can be followed by
asc
ordesc
keyword. Follow this link for more information. - unique: if true, it defines the index as a unique index: the index cannot have the same value for different rows.
@BindType
@BindTable(
indexes= {
@BindIndex({"birthCity", "birthDay desc"}),
@BindIndex({"surname"}),
@BindIndex(value={"name","surname", "date desc"}, unique=true )
}
)
public class Person {
...
}
- 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