requery / requery

requery - modern SQL based query & persistence for Java / Kotlin / Android
Apache License 2.0
3.13k stars 245 forks source link

Any Way yo load entity and avoid load referenced field? #879

Open steelxt opened 5 years ago

steelxt commented 5 years ago

Hello, I have a class Country that contains a Result<City>

@Entity
 interface Country :Persistable{
        @get:Key
        var idcountry: Long
        var name: String
        var countryPrefix: String?
        @get:Convert(PointConverter::class)
        var  position: Point?
        var lang: String?

        @get:OneToMany( mappedBy = "idcountry")
        @get:Nullable
        @get:Lazy*

        val cities :Result<City>?

}

country is being referenced in other entity and i don't want to loadval cities:Result<City>?. how i can achieve this?

thanks.