Exception "Could not execute query"
bonjour,
je travaille avec ejb et j'ai un problème d'une requête sql avec createNativeQuery ;
code:
Code:
1 2 3 4 5 6
| public List<Test$Reservation_Entry> listeReservation() {
Query q=em.createNativeQuery("select * from [test$Reservation Entry] where [Source Type]=37 and [Entry No_] in (select a.[Entry No_] from [test$Reservation Entry] a where a.[Source Type]=32)",Test$Reservation_Entry.class);
return q.getResultList();
} |
une Exception s'affiche:
Citation:
Exception in thread "main" javax.ejb.EJBException: javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: could not execute query
at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:63)
aider moi à resoudre ce problème