title: How to insert UUID into RAW(16) column
body: <p>I have the RAW(16) PK column in Oracle, and trying to insert into it using JDBC:</p>
  
  <pre><code>        PreparedStatement stmt = connection.prepareStatement("insert into COUNTRY (id, state, version, code, name, nationality, issuing_entity, country) values (?, ?, ?, ?, ?, ?, ?, ?)");
          UUID id = UUID.randomUUID();
          stmt.setObject(1, id, Types.BINARY);
  </code></pre>
  
  <p>However, I am getting an exception:</p>
  
  <pre><code>java.sql.SQLException: Invalid column type
  at oracle.jdbc.driver.OraclePreparedStatement.setObjectCritical(OraclePreparedStatement.java:8494)
  at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:7995)
  at oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedStatement.java:8559)
  at oracle.jdbc.driver.OraclePreparedStatementWrapper.setObject(OraclePreparedStatementWrapper.java:225)
  at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.setObject(HikariProxyPreparedStatement.java)
  at rw.gov.dgie.framework.test.AbstractTestCaseWithDB.tryToInsertCountry(AbstractTestCaseWithDB.java:78)
  at rw.gov.dgie.framework.test.AbstractTestCaseWithDB.dbSetup(AbstractTestCaseWithDB.java:62)
  at test.rw.gov.dgie.bms.terr.service.TestCountryService.init(TestCountryService.java:37)
  </code></pre>
  
  <p>I am getting the same exception when trying to use DbSetup for inserting test data.</p>
  
  <p>Is there a way to make JDBC insert UUIDs into RAW(16) column?</p>
  
  <p>I am using Oracle JDBC 12.2.0.1.0.</p>