Folks,
Just stumbled on the issue with using anonymous keys which make a compound PK of the class. <class-descriptor class="com.lear.ojb.beans.AmortizedToolingSchedulePO" table="SVZATSDTL"> <!-- PK { FK (class="com.lear.ojb.beans.AmortizedToolingSchedule") } --> <field-descriptor name="scheduleId" column="SCHEDULE" jdbc-type="DECIMAL" length="11" primarykey="true" nullable="false" access="anonymous"/> <!-- PK { FK (class="com.lear.ojb.beans.Requisition") } --> <field-descriptor name="reqNumber" column="REQ#" jdbc-type="DECIMAL" length="7" primarykey="true" nullable="false" access="anonymous"/> <field-descriptor name="reqType" column="POTYPE" jdbc-type="VARCHAR" length="5" primarykey="true" nullable="false" access="anonymous"/> <reference-descriptor name="amortizedToolingSchedule" class-ref="com.lear.ojb.beans.AmortizedToolingSchedule" auto-retrieve="false"> <foreignkey field-ref="scheduleId" /> </reference-descriptor> <reference-descriptor name="requisition" class-ref="com.lear.ojb.beans.Requisition" auto-retrieve="false"> <foreignkey field-ref="reqNumber" /> <foreignkey field-ref="reqType" /> </reference-descriptor> </class-descriptor> So I have a class that has two references, and using PersistentBroker.delete(new AmortizedToolingSchedulePO(amortizedToolingSchedule, requisition)) It gives me error: [11:20:38,160] ERROR (PersistenceBrokerImpl) - Cannot delete object without valid PKs. All references are valid objects... PK are anponymous... so what is wrong? Thank you in advance, -Sergey ********************** ** LEGAL DISCLAIMER ** ********************** This E-mail message and any attachments may contain legally privileged, confidential or proprietary information. If you are not the intended recipient(s), or the employee or agent responsible for delivery of this message to the intended recipient(s), you are hereby notified that any dissemination, distribution or copying of this E-mail message is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete this E-mail message from your computer.