adapt

fun <T> adapt(criteria: Criteria, joins: Root<T>.() -> JoinMap = { mapOf() }): Specification<T>