opensubscriber
   Find in this group all groups
 
Unknown more information…

t : torque-user@db.apache.org 26 January 2009 • 10:13PM -0500

newbie question about postgres: nextval
by Ivano Luberti

REPLY TO AUTHOR
 
REPLY TO GROUP




Hello I have searched the net quite a lot but I have not been able to
find the answer to this problem.

I'm using postgres to generate torque classes but the automatic
generation seems to make a few mistakes.
In the base class I found this java statement

private int pkAnagrafica =
nextval('anagrafica_pk_anagrafica_seq'::regclass);

which is marked as wrong by the compiler.

The same happens in the copyobject method of the same class:

copyObj.setPkAnagrafica( nextval('anagrafica_pk_anagrafica_seq'::regclass));

Is there a way to stop Torque generating these bad statements ?

Thanks for your attention.



_
_ <http://www.archicoop.it/>__ <http://www.archicoop.it/>

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

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.