Marc,
The problem is that your ID_TABLE is empty - it needs to have a row that
defines the ids it should allocate to MY_TABLE.
Scott
--
Scott Eade
Backstage Technologies Pty. Ltd.
http://www.backstagetech.com.au
.Mac Chat/AIM: seade at mac dot com
On 13/01/2003 9:47 AM, "Marc Lustig" <mail@marclustig.com> wrote:
> Hi,
> I have just set the fields of my BO and tried to save() to create a new row.
> Torque complains:
>
> java.lang.reflect.InvocationTargetException:
> org.apache.torque.TorqueException: The table MY_TABLE does not have a proper
> entry in the ID_TABLE at
> org.apache.torque.oid.IDBroker.selectRow(IDBroker.java:803) at
> org.apache.torque.oid.IDBroker.storeIDs(IDBroker.java:665) at
> org.apache.torque.oid.IDBroker.getNextIds(IDBroker.java:441) at
> org.apache.torque.oid.IDBroker.getIdAsBigDecimal(IDBroker.java:329) at
> org.apache.torque.util.BasePeer.doInsert(BasePeer.java:702) at
>
> My schema is set to defaultIdMethod="idbroker".
> My id_table is completely empty.
> What's the problem here?
> Can anybody give me a hint?
>
> Marc
>
>
> --
> To unsubscribe, e-mail:
> <mailto:turbine-torque-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:turbine-torque-user-help@jakarta.apache.org>
>
|