Compatibility with the properties of Kotlin
See original GitHub issueI want to generate SQLiteTypeMapping
in Kotlin with kapt. But all fields are private in Kotlin. There are open only getter and setter.
@StorIOSQLiteColumn(name = NAME, key = true)
var name: String = ""
I had this exception
Error:StorIOSQLiteColumn can not be applied to private field: name
In OrmLite I can do it like this:
@DatabaseField(useGetSet = true)
private Integer orderCount;
public Integer getOrderCount() { return orderCount;}
public void setOrderCount(Integer orderCount) { this.orderCount = orderCount;}
Issue Analytics
- State:
- Created 8 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Compatibility guide for Kotlin 1.6
Compatibility guide for Kotlin 1.6. Keeping the Language Modern and Comfortable Updates are among the fundamental principles in Kotlin ...
Read more >Public API challenges in Kotlin - Jake Wharton
The Kotlin class only needs a new property and the secondary constructor for compatibility. data class Person( val name: String, ...
Read more >Use common Kotlin patterns with Android
In Kotlin, you must initialize an object's properties when declaring the object. This implies that when you obtain an instance of a class, ......
Read more >Kotlin | Class Properties and Custom Accessors
In the case of Kotlin, properties are meant to be a first-class language feature. These features replace fields and accessor methods.
Read more >Property, Getter and Setter : Kotlin - Suneet Agrawal
Variable having a class level scope (member variables) which are declared inside the class but outside the methods or functions is called as...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
+1 hoping for this support!!
This one can be closed now.