-->
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: HQL Query: kann ein Property nicht qualifizieren
PostPosted: Thu Jun 15, 2006 12:33 pm 
Newbie

Joined: Thu Mar 30, 2006 2:12 pm
Posts: 4
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3.2.cr2
Hibernate Tools 3.1.0 beta 5


Hallo,

ich versuche folgende HQL Query auszufühern:
Code:
from
  de.ej.ztrader.hibernate.TransaktionBasis as tb,
  de.ej.ztrader.hibernate.TransaktionWp  as tw     
where
  tb.ID > 0


Allerdings bekomme ich immer folgende Fehlermeldung:
Code:
org.hibernate.QueryException: could not resolve property: ID of: de.ej.ztrader.hibernate.TransaktionBasis [
     
from
  de.ej.ztrader.hibernate.TransaktionBasis as tb,
  de.ej.ztrader.hibernate.TransaktionWp  as tw     
where
  tb.ID > 0
   
  ]


Lasse ich aber die Qualifizierung des Attributs ID weg, funktioniert die Query.

Code:
from
  de.ej.ztrader.hibernate.TransaktionBasis as tb,
  de.ej.ztrader.hibernate.TransaktionWp  as tw     
where
ID > 0   <--- so funktionierts


Was mache ich falsch. Hat einer eine Idee?

Gruß
Eddy


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.