dave08
04/11/2024, 5:32 AMToshihiro Nakamura
04/11/2024, 12:27 PMEntityMetamodels.list
function.dave08
04/11/2024, 12:32 PMEntityMetamodels.all()
in Meta
, maybe there should be one for the units fun FooUnit.all() = EntityMetamodels.list(this)
so that it shouldn't confuse users, and also it would be more discoverable...dave08
04/11/2024, 12:33 PMToshihiro Nakamura
04/11/2024, 12:41 PMall
function as a regular function, not as an extension function.
object FooUnit {
fun all(): List<EntityMetamodel<*, *, *>> {
return EntityMetamodels.list(FooUnit)
}
}
dave08
04/11/2024, 12:45 PMdave08
04/11/2024, 12:46 PM