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

Comment inline.
On 12/8/2011 9:25 PM, Jorge Arrieta wrote:
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.
Could you please post the sql you are getting.

Also could you please test this sql without Eclipselink:
write a simple jdbc test, run this sql and see whether the value is actually returned.

If the generated sql doesn't work in jdbc test, it would be great if you could post the correct sql.

Must say I assumed the problem was with the field being an id
no it is not.
, 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?.
You don't need to configure anything else.
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)
Specifying annotation is enough, you don't need any configuration on descriptors
or has work been done to support PostgreSQL?
Work has been done on PostgreSQL to support returning policy,
and more changes were applied to PostgreSQL platform between 2.3.1 and 2.3.2 RC1 - that's why I hoped that it would work.


_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users


Back to the top