I'm new to Torque so probably my question is simple.
I'm using the newest Torque and Postgres with JDBC 7.2
I have a table named accesslog and the appropied torque classes (Data objects and peers). I'm using idbroker as the
default id method for the database and this table has an autoincremented primary key, so the idmethod is native.
Here is the schema:
When I insert data into this table via the code:
Accesslog testAccess = new Accesslog();
The data is properly stored in the database (with incremented primary key and everything) but i get this exception over and over:
Error: org.apache.torque.TorqueException: ERROR: accesslog_seq.currval is not yet defined in this session
Any idea why this is happening?.
My guess is it has something to do with the sequences in postgres, but i don't know what.
Thanks in advanced.
Need a new email address that people can remember
Check out the new EudoraMail at