how to insert object to h2
<p>I've read H2 docs about storing objects in database. There is special SQL type OTHER and methods <code>setObject</code> and <code>getObject</code>. I've tried this code:</p>

<pre><code>PreparedStatement statement = null;
try {
    statement = connection.prepareStatement("CREATE TABLE PUBLIC.foo (name VARCHAR(64) NOT NULL, data OTHER NULL);");
    statement.execute();
} finally {
    statement.close();
}

statement = null;

try {
    statement = connection.prepareStatement("INSERT INTO PUBLIC.foo (name, data) VALUES(?,?);");
    statement.setString(1, "lololo");
    statement.setObject(2, new String[]{"foo", "bar"});
    statement.execute();
}finally {
    statement.close();
}
</code></pre>

<p>But I've got the exception:</p>

<blockquote>
  <p>org.h2.jdbc.JdbcSQLException: Ð¨ÐµÑ�Ñ‚Ð½Ð°Ð´Ñ†Ð°Ñ‚Ð¸Ñ€Ð¸Ñ‡Ð½Ð°Ñ� Ñ�Ñ‚Ñ€Ð¾ÐºÐ° Ñ�Ð¾Ð´ÐµÑ€Ð¶Ð¸Ñ‚ Ð½ÐµÑˆÐµÑ�Ñ‚Ð½Ð°Ð´Ñ†Ð°Ñ‚Ð¸Ñ€Ð¸Ñ‡Ð½Ñ‹Ðµ Ñ�Ð¸Ð¼Ð²Ð¾Ð»Ñ‹: "(foo, bar)"
  Hexadecimal string contains non-hex character: "(foo, bar)"; SQL statement:
  INSERT INTO PUBLIC.foo (name, data) VALUES(?,?) -- (?1, ?2) [90004-191]</p>
</blockquote>

<p>What is wrong?</p>