Release 1.7.0
What's Changed
- Small QoL clean ups and testing by @martin-jamszolik in #14
- RefValue for simpler foreign key reference. by @martin-jamszolik in #15
The #15 RefValue
object can really come in handy when you are retrieving a list of data model like, Purchase Orders, or Proposals. Those object have references to other rich objects. However, you don't want to load these completely other than their ID and their main identifying label.
Real scenario in Kotlin:
@Named("purchaseorder")
@PrimaryKey("po")
class PurchaseOrder(
var po: Long?=null,
@Ref(value="req_key",label="requester.name") var requester: RefValue?=null,
@Ref(value="sup_key",label="supplier.sup_name") var supplier: RefValue?=null,
@Ref(value="adr_key",label="poaddress.address") var address:RefValue?=null,
var effective: LocalDate? = null,
var tax: BigDecimal?= BigDecimal.ZERO,
var voidDate: LocalDate?=null,
var pay_type: String?=null,
@Skip val items: MutableList<PurchaseItem> = mutableListOf(),
) : Model()
The list of Purchase orders now contain enough of information to render and display in a list and their IDs if we ever had to load full details on requester, supplier.
Full Changelog: v1.6.1...v1.7.0