You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Graeme Pyle <gr...@GraemePyle.com> on 2001/05/28 21:43:52 UTC
Postgres and Torque
Hi,
I'm using Postgres and Torque, but I'm struggling with the ID broker.
When I generate the peer classes, the file "BaseIdTablePeer.java" seems to
have 2 definitions of TABLE_NAME:
public static final String TABLE_NAME =
mapBuilder.getIdTable_TableName();
....
public static final String TABLE_NAME = mapBuilder.getTable();
I got the schema for the ID table from
"share/conf/master/id-table-schema.xml". I am using tdk-2.1b2.tar.gz. and
Postgres 7.0.2.
By the way, does Turbine's Postgres driver support sequences? (It seems to
get the name of the sequence wrong: "tablename_seq" instead of
"tablename_tablepkey_id_seq")
Thanks,
Graeme
----
Graeme Pyle
cell: +27 83 415 1642
e-mail: graeme@GraemePyle.com
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: Postgres and Torque
Posted by John McNally <jm...@collab.net>.
The IDBroker does not use the OM/Peer layer. Do not include it in your
xml file.
john mcnally
Graeme Pyle wrote:
>
> Hi,
>
> I'm using Postgres and Torque, but I'm struggling with the ID broker.
>
> When I generate the peer classes, the file "BaseIdTablePeer.java" seems to
> have 2 definitions of TABLE_NAME:
>
> public static final String TABLE_NAME =
> mapBuilder.getIdTable_TableName();
> ....
> public static final String TABLE_NAME = mapBuilder.getTable();
>
> I got the schema for the ID table from
> "share/conf/master/id-table-schema.xml". I am using tdk-2.1b2.tar.gz. and
> Postgres 7.0.2.
>
> By the way, does Turbine's Postgres driver support sequences? (It seems to
> get the name of the sequence wrong: "tablename_seq" instead of
> "tablename_tablepkey_id_seq")
>
> Thanks,
>
> Graeme
>
> ----
>
> Graeme Pyle
>
> cell: +27 83 415 1642
> e-mail: graeme@GraemePyle.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org