SQLite - No Dialect mapping for JDBC type: 0 (Hibernate)
问题 I have a SQLite Datatable with string value as id and a BLOB value for a picture. I want to know if some entry with a specific id exists in the table. Query query = entityManager .createNativeQuery("SELECT logo_id FROM logo WHERE logo_id = ?"); query.setParameter(1, id); int count = query.getResultList().size(); But if I execute the query I get this error. javax.persistence.PersistenceException: org.hibernate.MappingException: No Dialect mapping for JDBC type: 0 at org.hibernate.ejb