Hi All,

There seems to be some problem with NATIVE and autoIncrement=true (column
level).  Generated MapBuilder seems to set correctly to NATIVE on TableMap.

But when I execute code that utilizes these options I get the following
exception.

org.apache.torque.TorqueException: IdGenerator for table 'RATINGPLANDESC'
        is null
        at org.apache.torque.util.BasePeer.doInsert(BasePeer.java:838)
        at
        
com.combined.bo.BaseRatingPlanDescPeer.doInsert(BaseRatingPlanDescPeer.java:178)

        at
        
com.combined.bo.BaseRatingPlanDescPeer.doInsert(BaseRatingPlanDescPeer.java:472)

        at
        com.combined.bo.BaseRatingPlanDesc.save(BaseRatingPlanDesc.java:266)

        at
        com.combined.bo.BaseRatingPlanDesc.save(BaseRatingPlanDesc.java:222)

        at
        com.combined.bo.BaseRatingPlanDesc.save(BaseRatingPlanDesc.java:205)

        at com.combined.WMSDBTest.main(WMSDBTest.java:31)

I have created my table primary key as PRIMARYKEY_ID GENERATED AS IDENTITY.

If I change to ID_TABLE based id generation (idBroker), then it works fine.

I have tried all the combinations including modifying MapBuilder to set
TableMap.AUTO_INCREMEN, to get autoincrement working.

Any help appreciated.

Thanks
Paddy


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to