From: | Art Taylor <taylorart(at)blast(dot)net> |
---|---|
To: | <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Customized Type Mapping |
Date: | 2002-03-26 17:54:20 |
Message-ID: | 200203261752.g2QHqBL76912@fireball.blast.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Joe Shevland | 2002-03-26 21:03:41 | Re: server shutting down |
Previous Message | Tom Hargrave | 2002-03-26 14:23:11 | JDBC with PostgreSQL 7.2 |