- Add Proguard consumer rules
- Reduce number of allocations
- Added
getColumn(String).as(Class<T>)
method returning deserializationFunction<Cursor, T>
which uses custom type adapters registered in MicroOrm instance. - Migrate to Gradle
- Allow duplicate
@Column
annotation, with following restriction: you can getContentValues
from object with duplicate@Column
s only if at most one@Column
isreadonly=false
.
- Fixed crash on converting @Embedded object with null fields to ContentValues
- Fixed converting null objects to ContentValues in OptionalTypeAdapter.
- minSdkVersion = 10
- Added
getFunctionFor
method returning deserializationFunction<Cursor, T>
.
- Changed
collectionFromCursor
intolistFromCursor
returningList<T>
instead ofCollection<T>
. - Do not allow multiple @Column annotations with the same column name in scope of a single entity.
- Added
readonly
argument for @Column annotation to mark that the field should be read fromCursor
, but not included inContentValues
. - Added
treatNullAsDefault
argument for @Column annotation to mark that the column should not be included inContentValues
, so the backing database can use the default value for this column.
- Initial release.