Hi,

while I wanted to save a object with a lot of related objects I got the
Exception with following detailmessage:

detailMessage = "OJB ERROR: Dont know how to autoincrement field class
de.virtualsolution.ojb.Selection.id"

Selection is the root object. With the definition in repository.xml it is
possible to save the seletion. The code for saving is

       try {
            broker = BrokerFactory.getDefaultBroker();

            broker.beginTransaction();

            // ToDo: check for flag: create as MarketingAction
            broker.store(sel);
            // 7. commit transaction
            broker.commitTransaction();
            broker.close();
            ok = true;
        } catch (PersistenceBrokerException pbe) {
            m_log.error("Selection could not be saved !", pbe);
        }

Autoincrement is defined and normally works, so I have no idea what that
message can mean. What should I check to find the real problem.
Can it be, that the error is related to one of the subobjects and some
missing configurations in repository.xml ?

Thanx for you help.
Thomas


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

Reply via email to