Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] forcing an update in a column

You can do this using an aboutToUpdate event using EclipseLink's
DescriptorEventListener interface. Just add the user to the row in the
event.

See,
http://wiki.eclipse.org/EclipseLink/Examples/JPA/Auditing#Use_a_common_database_user_id.2C_and_manage_auditing_and_security_in_the_application


Cronemberger, Constantino wrote:
> 
> Hi,
> 
> 
> 
> I am using Oracle's audit logging mechanism where it generates a log of
> all update/delete operations executed.
> 
> 
> 
> The problem is that if the field "user_id" is not updated then EclipseLink
> does not put a "set user_id = ?" in the generated SQL and at the end the
> user id of the user who did that update will not appear in the
> corresponding line in the audit log.
> 
> 
> 
> Is there a way to force EclipseLink to generate an update for a field that
> was not in fact update?
> 
> 
> 
> Thanks,
> 
>    Constantino.
> _______________________________________________
> eclipselink-users mailing list
> eclipselink-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/eclipselink-users
> 
> 


-----
http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland 
http://www.eclipse.org/eclipselink/
 EclipseLink ,  http://www.oracle.com/technology/products/ias/toplink/
TopLink 
Wiki:  http://wiki.eclipse.org/EclipseLink EclipseLink , 
http://wiki.oracle.com/page/TopLink TopLink 
Forums:  http://forums.oracle.com/forums/forum.jspa?forumID=48 TopLink , 
http://www.nabble.com/EclipseLink-f26430.html EclipseLink 
Book:  http://en.wikibooks.org/wiki/Java_Persistence Java Persistence 
Blog:  http://java-persistence-performance.blogspot.com/ Java Persistence
Performance 
-- 
View this message in context: http://old.nabble.com/forcing-an-update-in-a-column-tp31371956p31388633.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top