Since JIRA is unavailable, I will reply to the discussion of
METAMODEL-251 [1] via mail...

I agree that the change would make MetaModel more "JDBC like". But I
don't see JDBC as a very good rolemodel for MetaModel, rather I just
feel that MetaModel lends on SQL as a query structure rather than JDBC
itself. At least I don't think that there's an intrinsic value in
being "JDBC like" for us since it seems most people anyway prefer
higher level APIs such as JPA, LINQ or ... MetaModel :-)

Maybe we can start by adding the containsColumn(Column) and
containsSelectItem(SelectItem) methods to the Row interface? That
should be doable without breaking too many things. Then you could
consider adding a StrictRow class as a wrapper around it. Even just
for debugging your issue?

An alternative would also be to have some kind of system property
which we could set to influence what type of behaviour we want - to
determine if we would return null or throw an exception.

[1] https://issues.apache.org/jira/browse/METAMODEL-251

Reply via email to