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?
Hello, I have a class Country that contains a
Result<City>
country is being referenced in other entity and i don't want to load
val cities:Result<City>?
. how i can achieve this?thanks.