Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Optimistic locking
Optimistic locking [message #639348] Tue, 16 November 2010 03:05 Go to next message
Peter Kullmann is currently offline Peter Kullmann
Messages: 199
Registered: July 2009
Senior Member
Hi,
How can I specify AllFieldsLockingPolicy or something similar in a
orm.xml file? I have seen the
@OptimisticLocking(type=OptimisticLockingType.ALL_COLUMNS) annotation
but there should be an equivalent option in the orm.xml as well.

Thanks,
Peter
Re: Optimistic locking [message #639492 is a reply to message #639348] Tue, 16 November 2010 13:10 Go to previous message
Paul Fullbright is currently offline Paul Fullbright
Messages: 200
Registered: July 2009
Senior Member
There is. You just need to make sure you are using the eclipselink-specific version of the orm.xml, since this is an eclipselink-specific setting.

http://www.eclipse.org/eclipselink/xsds/eclipselink_orm_2_0. xsd



Previous Topic:em.executeUpdate() DELETE always returning 1
Next Topic:[SOLVED]Problem with @Converter and smallint field
Goto Forum:
  


Current Time: Tue Jul 29 20:59:11 EDT 2014

Powered by FUDForum. Page generated in 0.03263 seconds