jpa stepped pit SQLGrammarException

The cause is the Execute Query could not SQLGrammarException not found by the above mentioned id column, , the above mentioned id it means that the results returned no Id

  Package Error ,, the result set to be received by all of the fields are not Object ,, when the object can not be reused

  When a single record individual fields, with the best type or return type Object corresponding field.

  When a plurality of fields, or whether a plurality of records a single record, return type should be List <Object []>

GrammarException Parameter with that name [endTime] did not exist parameter is not found

select m.economic_loss from tb_event_evaluate_model m left join tb_receive_warn_event e on e.id = m.source_event_id where e.insert_time BETWEEN :beginLongTime AND :endTime order by m.id DESC;

After SQL join, order by m.id

Guess you like

Origin www.cnblogs.com/guyuedashu/p/11571686.html