Skip to content

Release 1.7.0

Compare
Choose a tag to compare
@martin-jamszolik martin-jamszolik released this 22 Mar 02:26
· 4 commits to main since this release
bd6a8b5

What's Changed

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