Customized Type Mapping - Mailing list pgsql-jdbc

From Art Taylor
Subject Customized Type Mapping
Date
Msg-id 200203261752.g2QHqBL76912@fireball.blast.net
Whole thread Raw
List 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 by date:

Previous
From: "Dave Cramer"
Date:
Subject: Re: server shutting down
Next
From: "Joe Shevland"
Date:
Subject: Re: server shutting down