Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Getting Trigger-Generated ID

Hello again,

Thanks for replying.

Following the suggestion I tried to use version 2.3.2.v20111125-r10461,
and since that didn't seem to make a difference I also tested the nighly
build 2.3.2.v20111208-r10519 and the beta
eclipselink-plugins-2.4.0.v20111130-r10478; none of which worked.

Must say I assumed the problem was with the field being an id, but I
added a second basic integer field and changed the trigger, and that
value won't get updated either (I can refresh the entity afterwards tho,
but that defeats the purpose and is obviously not possible in the case
of the id). 

It may be case tho, that I'm not configuring something that needs to
be?. My persistence.xml is pretty simple, a RESOURCE_LOCAL PU, list of
entities, db connection info and a CustomSessionLogger. 

Re-reading the wiki I noticed it says that for the ReturnPolicy to work
on on-oracle dbms you must configure a Descriptor. Is this still the
case (and if it is i would really appreciate any pointers on how to do
it, as I have no idea which of the objects obtained from the
ClassDescriptor pertain to "writing-back" values into the entity, or how
to hook it up) or has work been done to support PostgreSQL?




Back to the top