You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-user@db.apache.org by Angela Day <an...@tdhca.state.tx.us> on 2004/11/17 20:03:53 UTC

Not creating retrieveByPK methods

I upgraded to torque 3.1.1 from 3.0 and now my classes are not being created
with retrieveByPK methods.  All tables have primary keys and this worked in
torque 3.0.

Help!!!!!!!!!

Angela



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


RE: Not creating retrieveByPK methods

Posted by Thomas Fischer <Fi...@seitenbau.net>.




Hi Angela,

this works for me. I have used the generator 3.1.1, the schema from the
tutorial.
E.g in BaseBookPeer, I find the methods
    public static Book retrieveByPK(int pk)
    public static Book retrieveByPK(int pk, Connection con)
    public static Book retrieveByPK(ObjectKey pk)

So some information about your schema.xml is needed...

   Thomas

Angela Day <an...@tdhca.state.tx.us> schrieb am 17.11.2004 20:03:53:

> I upgraded to torque 3.1.1 from 3.0 and now my classes are not being
created
> with retrieveByPK methods.  All tables have primary keys and this worked
in
> torque 3.0.
>
> Help!!!!!!!!!
>
> Angela
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-user-help@db.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org