Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] BEFORE INSERT trigger modifies a column --> doesn't refresh in EclipseLink

Thanks Derek and Andrei!

It seems the annotation is absolutely for this purpose, I've checked the javadoc:
But no help for the returnOnly attribute, what does it do? What happens if I set it to false? Thanks!

On Wed, Nov 24, 2010 at 8:36 PM, Andrei Ilitchev <andrei.ilitchev@xxxxxxxxxx> wrote:
Annotate the property with

On 11/24/2010 2:24 PM, Bálint Kriván wrote:

I have a column which is managed by a trigger in DB (Oracle 9i
(production)/10g (dev)). But when I try to use the getter method to
access this property of the object I'm getting null. When I redeploy my
application it works, because EclipseLink cache is being purged (My
application persisted the object as this property would be null, but
trigger modified it -- which isn't propagated to EclipseLink). My
question is that; is there a way to make this work? In the other thread
I was advised to use the EntityManager#getRefrence() method, but
obviously I can't use this in this situation. I'm sure that there should
be some trick to make this work, because I'm pretty sure this is a very
frequent use case.

Bálint Kriván

eclipselink-users mailing list
eclipselink-users mailing list

Kriván Bálint

Back to the top