There are 17 references to types in the package org.hibernate.query.sqm from the package org.hibernate.metamodel.model.domain. In my opinion, these are layer-breakers. The reason I make this claim is that org.hibernate.metamodel.model.domain lives in the same layer as org.hibernate.query.criteria, and is referenced from types in that package. But org.hibernate.query.criteria is some sort of abstraction over org.hibernate.query.sqm. We shouldn’t be able to navigate to types in the “lower” layer by following getters within the “higher” layer. This package is still marked @Incubating, so it’s not too later to fix this. Related to https://hibernate.atlassian.net/browse/HHH-16866. |