Having a problem with this HQL select, not sure how much output to show so I'm providing most of it. If this is in-appropriate just let me know.
My questions is what isn't hibernate likeing here. I've found several cases with this same error message where the problem was with the select and not a column at all.
dw
-------------------------- output follows ---------------------------------
[main]:D: 31 18:04:46.449: QueryTranslator.logQuery: HQL:
SELECT t
FROM com.clientx.pathy.model.table.ActivityPigeonHole t
WHERE t.activityPartId = 18 AND rowNumber >= 1 ORDER BY rowNumber DESC ,columnNumber DESC
[main]:D: 31 18:04:46.449: QueryTranslator.logQuery: SQL:
select
activityce0_.activity_cell_id as activity1_,
activityce0_.row_number as row_number,
activityce0_.answer_format as answer_f3_,
activityce0_.question_type as question4_,
activityce0_.column_number as column_n5_,
activityce0_.show_answer as show_ans6_,
activityce0_.activity_part_id as activity7_ from syn_activity_cell activityce0_
where (activityce0_.activity_part_id=18 )AND(rowNumber>=1 ) order by rowNumber DESC , columnNumber DESC
[main]:D: 31 18:04:46.449: BatcherImpl.logOpenPreparedStatement: about to open: 0 open PreparedStatements, 0 open ResultSets
[main]:D: 31 18:04:46.449: BatcherImpl.getPreparedStatement:
select
activityce0_.activity_cell_id as activity1_,
activityce0_.row_number as row_number,
activityce0_.answer_format as answer_f3_,
activityce0_.question_type as question4_,
activityce0_.column_number as column_n5_,
activityce0_.show_answer as show_ans6_,
activityce0_.activity_part_id as activity7_
from syn_activity_pigeonhole activityce0_
where (activityce0_.activity_part_id=18 )AND(rowNumber>=1 ) order by rowNumber DESC , columnNumber DESC
Hibernate:
select
activityce0_.activity_cell_id as activity1_,
activityce0_.row_number as row_number,
activityce0_.answer_format as answer_f3_,
activityce0_.question_type as question4_,
activityce0_.column_number as column_n5_,
activityce0_.show_answer as show_ans6_,
activityce0_.activity_part_id as activity7_
from syn_activity_pigeonhole activityce0_ where (activityce0_.activity_part_id=18 )AND(rowNumber>=1 ) order by rowNumber DESC , columnNumber DESC
[main]:D: 31 18:04:46.459: BatcherImpl.getPreparedStatement: preparing statement
[main]:D: 31 18:04:46.469: JDBCExceptionReporter.logExceptions: SQL Exception
java.sql.SQLException: ORA-00904: invalid column name
|