This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
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

HibernateQueryException: could not resolve property

 
rob jackman
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
DataAccessException occurred while getting divsion >
org.springframework.orm.hibernate3.HibernateQueryException: could not resolve property: documentName0pendingdivsion of:
abc.Document [
select doc from abc.Document doc join doc.divsion sect where upper(sect.isCom
mon) = 'Y' order by sect.title
, doc.documentName0pendingDivision title5200:00];



please can someone help im getting this exception when the code runs!!!
 
Rodrigo Lopes
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, as the message says, there's some problem with the documentName0pendingDivision property of your abc.Document class.

Isn't it a typo? Shouldn't it be documentName0peningDivision ?

If not, take a look at this and its mapping to try to figure out the problem or show them to us and it may be easier to help.
[ June 10, 2008: Message edited by: Rodrigo Lopes ]
 
rob jackman
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is documentName0pendingDivision a coloumn of the table abc.Document in the database
[ June 10, 2008: Message edited by: robin jackman ]
 
Rodrigo Lopes
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Rodrigo Lopes:
[QB]
If not, take a look at this and its mapping to try to figure out the problem or show them to us and it may be easier to help.
[QB]
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"jackman" (change your display name)

What Rodrigo is trying to tell you is that it looks like you have a typo in the name of the object's attribute. Like there is a "d" in the name that most likely isn't there in your Object.

Mark
 
rob jackman
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
there is no property like documentnameopendingdivision in the code instead it is documentname but after the code is executed the error message has this documentnameopendingdivision
[ June 12, 2008: Message edited by: rob jackman ]
 
Rodrigo Lopes
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please, show us the code for class Document and its mapping.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic