Hi,

I've configured KeyCloak datasource to a PostgreSQL database.
I found that "REALM_APPLICATION" table has a strange mapping.

REALM_ID is the APPLICATION (CLIENT)
APPLICATION_ID is the REALM

I think it was a mistake by incorrect JPA mapping.

Regards,
Leonardo Zanivan