cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kanwar Manish <>
Subject Life cycle callback onPostAdd doesn't seem to be working
Date Fri, 27 Jul 2012 11:14:07 GMT
I am using Cayenne 3.1B1.

Overriding onPostAdd is not working. I have added the callback in the
modeller added the code below

    protected void onPostAdd()
        if (getObjectId() == null)

Basically - trying to initialize the Primary Key - but this is not working.
When adding multiple related objects - id's of the objects obtained through
- context.newObject() are not having any id.

Can you point me - what am I doing wrong/missing here?

Kanwar Manish

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message