EntityClass
constructor(table: IdTable<ID>, entityType: Class<T>? = null, entityCtor: (EntityID<ID>) -> T? = null)
Parameters
table
The table whose rows are mapped to entities managed by this class.
entityType
The Entity class to map. Defaults to the class that encloses this companion object.
entityCtor
Called to instantiate an entity for a row. Defaults to the entity's primary constructor, looked up by reflection on first access; pass a reference such as ::Film to skip that lookup.