how is someone supposed to solve a problem with a query on a table if the table layout is unknown? Sorry, I can't do that, my crystal ball is currently in repair...
Post some info on the table you are querying or a mapping file that produces the query. Then, maybe someone can help...
Dominique Von Hofcheirken
Joined: Oct 02, 2009
However, I solved the issue.
The problem is that Hibernate tries to retrieve all mapped columns specified for DataValues objects, even if I specified only to get tow of them in the following named query in the mapping document:
Then the strange error:
could not read column value from result set: PK1_8_0_; Invalid column name
Then, I created a new mapping document and a new mapped object to exactly fit the query: