hi i got the QueryException in while trying to run the following query.
here , TWARSRC is the parent class which has the reference to its child class twarsrcAdrs and this child class has the property stcd.
or Am i wrong in referring to the child object from parent.
the exception stack trace is shown below
posted 11 years ago
select rsc.twarsrcAdrs.stCd from Twarsrc rsc where rsc.rsrcId = 24932 i think the problems come because you are (implicit) joining a 1:n relation.
when the relation is bi-directional try select a.stcD from twarsrcAdrs a where twars.rcs.id = ?
select rsc.twarsrcAdrs.stCd from Twarsrc rsc where rsc.rsrcId = 24932
Things get always more complicated as expected.<br />Author of eBook Hibernate 3 Developer Guide by example<br />Tutorials about Hibernate, EJB, Struts, JSF <a href="http://www.laliluna.de" target="_blank" rel="nofollow">www.laliluna.de</a>
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads