← Back to Stormify Documentation

registerPrimaryKeyResolver

fun registerPrimaryKeyResolver(priority: Int, resolver: (String, String) -> Boolean)

Registers a primary key resolver used when no @Id or @DbField(primaryKey=true) annotation is present. The resolver receives the table name and field name and returns true if the field is a primary key. Lower priority values are evaluated first.