When I write this code.
@JmixProperty
@DependsOnProperties("stakeholders")
fun getCurrentOwners(): List<InspectionCaseStakeholder> = stakeholders.filter { it.type?.code == InspectionStakeholderType.OWNER && it.current == true }
I get this error
Method-based property InspectionCase.getCurrentOwners doesn't support collections and maps
How to write a computed attribute which return a Collection or Map of Entity ?
The logic could be complex so I don’t want to write it more than once… but I want to use this attribute in some screens and reports