Customized Type Mapping

Поиск
Список
Период
Сортировка
От Art Taylor
Тема Customized Type Mapping
Дата
Msg-id 200203261752.g2QHqBL76912@fireball.blast.net
обсуждение исходный текст
Список pgsql-jdbc
I'm trying to get customized type mapping working with the JDBC 2.0
development driver (jdbc7.2dev-1.2.jar) and it seems to fail quietly. Is is
supported yet? The code is as follows.

....

    ObjectExample2 objectExample = new ObjectExample2();

    System.out.println("Getting connected ... " );
    con = objectExample.getConnected();

    // add our custom type
    HashMap map = new HashMap();
    map.put("schema.DataObjectTest", Class.forName("DataObjectTest") );

    con.setTypeMap( map );

    // get the record and output the object
...

    The program exits at the attempt to add the type map.

    Any suggestions??

  -- Art

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: "Dave Cramer"
Дата:
Сообщение: Re: server shutting down
Следующее
От: "Joe Shevland"
Дата:
Сообщение: Re: server shutting down