The reason behind not using cb.parameter(AnEmbeddable.class) directly is that my code is not doing that call directly but rather using spring data jpa which under the hood will call cb.parameter(Object.class) instead of cb.parameter(AnEmbeddable.class). |