label

fun label(pattern: String, vararg ops: TextTransformer): LabelFormatter.FromPattern(source)

Set the entity label from a pattern, replacing any ${} variables inside pattern with values from Entity.properties.

Example: jdbi3

Entity labels from SQL inside @SqlUpdate annotation

methods {
annotatedBy(A.sqlUpdate)
entity(E.sqlUpdate, label("\${sql}"),
property("sql", readAnnotation(A.sqlUpdate, "value"))
)
}