Are you saying torque created a sequence with name board_id_SEQ? I
don't see how it could given the table definition below. But if you say
yes, I guess I will take a look at the source.
If you want to use a different sequence name you can use the
<id-method-parameter> tag to specify the name.
john mcnally
On Fri, 2002-07-26 at 10:37, Will Holcomb wrote:
> I have been wandering through the source trying to find where this is
> happening to fix it, but I have not managed to find it yet. I've got a
> deadline monday, so I'll look more after that if noone fixes it...
>
> I am running torque 3.0-b2. (Trying to learn to use it.) =)
>
> I have a table:
>
> <table name="board" description="Available boards">
> <column name="id" required="true" primaryKey="true" type="INTEGER"
> autoIncrement="true" description="Board ID" />
> <column name="title" required="true" type="CLOB" />
> <column name="description" required="true" type="CLOB" />
> <unique>
> <unique-column name="title"/>
> </unique>
> </table>
>
> The generated BoardMapBuilder.java has the following:
>
> public void doBuild() throws TorqueException
> {
> ...
> tMap.setPrimaryKeyMethodInfo("board_SEQ");
> ...
> }
>
> board_seq is not the name of the sequence that is populating the id,
> board_id_seq is. If I fix the map then it works.
>
> Will
>
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>