question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Compatibility with the properties of Kotlin

See original GitHub issue

I 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:closed
  • Created 8 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
blueberycommented, Oct 12, 2016

+1 hoping for this support!!

0reactions
geralt-encorecommented, Dec 6, 2016

This one can be closed now.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found