findById

inline fun <T : VitalEntity<ID>> findById(id: ID): T?

Gets the first entity that is an instance of the given type and has the given id.


fun <T : VitalEntity<ID>> findById(type: Class<T>, id: ID): T?

Gets the first entity that is an instance of the given type and has the given id.