In a way it makes sense not to have an IdGenerator when autoIncrement is true. In otherwods, that could be null, and the case just needs to be handled and generated INSERT sql should not mention the AUTOINCREMENTING field or its VALUE. This just may be a bug that needs to be fixed.
Torque developers, please look at this, and shed some light. I need this working pretty badly. Thanks Paddy Sorry, no hints, only an info: same for MySQL Pac> There seems to be some problem with NATIVE and autoIncrement=true (column Pac> level). Generated MapBuilder seems to set correctly to NATIVE on TableMap. Pac> But when I execute code that utilizes these options I get the following Pac> exception. Pac> org.apache.torque.TorqueException: IdGenerator for table 'RATINGPLANDESC' Pac> is null Pac> at org.apache.torque.util.BasePeer.doInsert(BasePeer.java:838) Pac> at Pac> com.combined.bo.BaseRatingPlanDescPeer.doInsert(BaseRatingPlanDescPeer.java:178) Pac> at Pac> com.combined.bo.BaseRatingPlanDescPeer.doInsert(BaseRatingPlanDescPeer.java:472) Pac> at Pac> com.combined.bo.BaseRatingPlanDesc.save(BaseRatingPlanDesc.java:266) Pac> at Pac> com.combined.bo.BaseRatingPlanDesc.save(BaseRatingPlanDesc.java:222) Pac> at Pac> com.combined.bo.BaseRatingPlanDesc.save(BaseRatingPlanDesc.java:205) Pac> at com.combined.WMSDBTest.main(WMSDBTest.java:31) Pac> I have created my table primary key as PRIMARYKEY_ID GENERATED AS IDENTITY. Pac> If I change to ID_TABLE based id generation (idBroker), then it works fine. Pac> I have tried all the combinations including modifying MapBuilder to set Pac> TableMap.AUTO_INCREMEN, to get autoincrement working. Pac> Any help appreciated. Best regards homburg Softwaretechnik Sven Homburg D-21220 Seevetal http://www.hsofttec.com -- 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]>
