-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: QueryException:illegal attempt to dereference collection
PostPosted: Thu Jan 17, 2008 7:57 am 
Newbie

Joined: Thu Jan 17, 2008 7:49 am
Posts: 1
i get the following exception :

Error in named query: getZonePanelItems
org.hibernate.QueryException: illegal attempt to dereference collection [vecltypzon1_.PK_VECLTYP_ZONE_PANEL.panelItems] with element property reference [lookup] [
from com.manheim.icheck.domain.Lookup lu,com.manheim.icheck.domain.VecltypZonePanel vzp where
lu.pkLookup in vzp.panelItems.lookup and
vzp.vehicleType.pkVehicleType = :vehTypeId and
vzp.lookupByFkZoneKey.pkLookup = :zoneId and
vzp.lookupByFkPanelKey.pkLookup = :panelId

]
when i try to execute the following query:

<query name="getZonePanelItems"><![CDATA[
from Lookup lu,VecltypZonePanel vzp where
lu.pkLookup in vzp.panelItems.lookup and
vzp.vehicleType.pkVehicleType = :vehTypeId and
vzp.lookupByFkZoneKey.pkLookup = :zoneId and
vzp.lookupByFkPanelKey.pkLookup = :panelId

]]></query>

panelItems is a set inside VecltypZonePanel table

Please help is resolving the error. I am using hibernate 3.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.