Repository navigation
v0.1.13
There are breaking changes in this release
New Annotation Syntax (you can check the documentation, it was changed with docs on new annotation systems)
The annotation syntax has been completely redesigned for better readability, consistency, and annotation groups support.
Before:
-- @@field=phone @@adapter #mobiletoly propertyName=myPhone @@propertyName =model.Phone
Now:
-- @@{ field=phone, propertyName=myPhone, adapter=custom, propertyType=model.Phone }
(actually in most cases you don't need to specify adapter anymore, it will be autodetected, more information is in documentation).
How to migrate? You need to check all your .sql files and replace old syntax with new syntax.
Adapter names has changed
Before
val db = NowSampleDatabase(
personAdapters = NowSampleDatabase.PersonAdapters(
sqlColumnToPhone = { ... }
phoneToSqlColumn = { ... }
...
Before
val db = NowSampleDatabase(
personAdapters = NowSampleDatabase.PersonAdapters(
sqlValueToPhone = { ... }
phoneToSqlValue = { ... }
...
How to migrate? Should be a simple search and replace of sqlColumnTo=>sqlValueTo and ToSqlColumn=>ToSqlValue
I'm planning to add transient properties support to schema and word "column" would be confusing when setting up adapters for this kind of properties.