But I’m thinking it should not have worked and should have been rejected with a meaningful error. I mean, was there any good reason behind not just changing your code to cb.parameter(AnEmbeddable.class)? Because it’s not the case that we can generically compare a parameter of any java type to an embeddable object. And we now reject comparisons we can’t perform. For example, we reject things like cb.equals(cb.literal("hello"),cb.parameter(Integer.class)). |