Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hibernate query problem

 
Lukas Alamar
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i was quite happy cause hibernate successfully mapped my class to the db
when i tried to execute a query and got a sql invalid column name error!!
but im sure i mapped the class's field to the correct column name

<property name="cmp" type="string" column="C_CMP" not-null="true"/>

this is the query:
from fuckthegest.model.PropostaOrdine as po where po.cmp = :cmp and po.prg = : prg

i cant figure this out

does anybody have a useful clue??

thank u
[ July 07, 2005: Message edited by: Lukas Alamar ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic