AppSchema queries fails when mappings have no IdExpression
Steps to reproduce:
setUp mappings with no IdExpression with a jdbc feature source.
Make sure that the primary keys are named differently in the database for each table.
Run a getFeature request with a filter.
A sql query will be generated when trying to retrieve the nested features trying to select distinct root table with the primary key of the related table.