exclude vars from objectbox of specified class

582 views Asked by At

im trying to create an objectbox for class but i don't need to save all values of that specific class. part of the values i use only at run-time so there is not point to save them in the database

iv tried to search over your site but couldn't find any documentation about excluding values

im using android and kotlin

for example:

class Timer(var total : Long) {
    //i dont need to save it. use it for runtime only
    var elapsedTime: Long = 0
}
1

There are 1 answers

3
Markus Junginger On BEST ANSWER

To exclude properties use @Transient (from Kotlin or ObjectBox, both should work).