mardi 21 octobre 2008

No Dialect mapping for JDBC type: -1

org.hibernate.MappingException: No Dialect mapping for JDBC type: -1

Was provoked by :

String query = "SELECT * FROM MYTABLE WHERE MYID=? "+ "AND MYCRITERIA >= ?";SQLQuery sqlQuery;sqlQuery = session.createSQLQuery(query);sqlQuery.setString(0, code);sqlQuery.setDate(1, date);List<string> ports = sqlQuery.list();


The cause was I could not to use the *, I had to specify each field instead.

Aucun commentaire: