Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Optimistic locking
Optimistic locking [message #639348] Tue, 16 November 2010 08: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 18: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: Fri Sep 19 17:55:51 GMT 2014

Powered by FUDForum. Page generated in 0.01683 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software