adding postgresql data types

From: Tore Halset (halse..vv.ntnu.no)
Date: Tue Jun 29 2004 - 02:50:59 EDT

  • Next message: Tore Halset: "does cayenne support jdbc ARRAY?"

    Hello.

    The PostgreSQL jdbc driver has the possibility to register addtitional
    data types for a connection. I would like to use this with cayenne for
    some postgis data types.

    In standard jdbc you would do something like this:
                 conn = DriverManager.getConnection(url, "...", "...");
                 ((PGConnection) conn).addDataType("geometry",
    "org.postgis.PGgeometry");
                 ((PGConnection) conn).addDataType("box3d",
    "org.postgis.PGbox3d");

    It looks like this has to be done for every connection. Where is the
    best place to do this in cayenne?

    Regards,
      - Tore.



    This archive was generated by hypermail 2.0.0 : Tue Jun 29 2004 - 02:51:02 EDT