# Can't compare test expression of type \[CommodityEntity\] with element of type \[BasicSqmPathSource(materialId : Integer)\]

**URL:** <https://discourse.hibernate.org/t/cant-compare-test-expression-of-type-commodityentity-with-element-of-type-basicsqmpathsource-materialid-integer/8166>\
**Category:** Hibernate ORM\
**Created:** [August 23, 2023, 11:29am UTC](https://discourse.hibernate.org/t/cant-compare-test-expression-of-type-commodityentity-with-element-of-type-basicsqmpathsource-materialid-integer/8166 "2023-08-23T11:29:35Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mbladel](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/mbladel/32/2128_2.png) [@mbladel](https://discourse.hibernate.org/u/mbladel)\
**Post date:** [August 23, 2023, 11:37am UTC](https://discourse.hibernate.org/t/cant-compare-test-expression-of-type-commodityentity-with-element-of-type-basicsqmpathsource-materialid-integer/8166/2 "2023-08-23T11:37:54Z")

</div>

This is a duplicate of your other post [Regarding Subquery in JPQL,please help me on this](https://discourse.hibernate.org/t/regarding-subquery-in-jpql-please-help-me-on-this/8164).

---

_[View the full topic](https://discourse.hibernate.org/t/cant-compare-test-expression-of-type-commodityentity-with-element-of-type-basicsqmpathsource-materialid-integer/8166)._
