mustBeBetween

fun <T : Comparable<T>> T?.mustBeBetween(from: Metamodel<T>, to: Metamodel<T>)

creates Range query

When this is not null:

Adds a range query to ensure the field from is less than or equal to this and the field to is greater than or equal to this