करने के लिए अवैध प्रयास मैंorg.hibernate.QueryException: भिन्नता संग्रह
SELECT count(*)
FROM BillDetails as bd
WHERE bd.billProductSet.product.id = 1002
AND bd.client.id = 1
निष्पादित करने के लिए निम्नलिखित HQL क्वेरी कोशिश कर रहा हूँ लेकिन यह दिखा रहा है
org.hibernate.QueryException: illegal attempt to dereference collection
[billdetail0_.bill_no.billProductSet] with element property reference [product]
[select count(*) from iland.hbm.BillDetails as bd where bd.billProductSet.product.id=1001 and bd.client.id=1]
at org.hibernate.hql.ast.tree.DotNode$1.buildIllegalCollectionDereferenceException(DotNode.java:68)
at org.hibernate.hql.ast.tree.DotNode.checkLhsIsNotCollection(DotNode.java:558)
क्या आप अपनी कक्षाओं की परिभाषाओं को जोड़ सकते हैं? क्या उनमें उनमें रिश्ते की परिभाषाएं हैं? –