| I've added a test case that shows the problem. Note that although the test uses the H2 Database, it also affects (at least) PostgreSQL and SQL Server as well. Seems to me to be a problem with the SQL Type -> Java Type mapping mechanism used by the NativeQuery implementation. |