|
Re: [Teneo] How to specify EclipseLink AllFieldsLockingPolicy [message #637552 is a reply to message #637528] |
Sat, 06 November 2010 15:18 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi Peter,
Unfortunately Teneo supports jpa 1.0, the same for the orm.xsd in Teneo. For recent and specific EclipseLink support you
have to look at Texo I am afraid. The Texo orm supports the optimistic locking policy you are looking for. But Texo is
more a server side solution. Although it is easy to convert Texo objects to EMF objects, so it would be quite possible
to read objects from the database using eclipselink and convert them to EMF objects on the fly:
http://wiki.eclipse.org/Texo/Convert_to_EMF
gr. Martin
On 11/06/2010 09:42 AM, Peter Kullmann wrote:
> Hi,
>
> I'm trying to map an EMF model to a legacy database that I cannot
> change. I'm creating the orm.xml programmatically using a
> http://www.elver.org/xsd/teneo/persistence-mapping-hibernate .xsd file as
> input (besides the ecore). I would like to use optimistic locking with
> the eclipse link AllFieldsLockingPolicy because the normal optimistic
> locking with a version field does not work in my case as there is
> another application working on the same database.
>
> I didn't find a place to add the AllFieldsLockingPolicy setting. I tried
> in:
> * persistence.xml: this would be great; just setting a default for
> everything, but I think it's not possible
> * PersistenceOptions: There is an optimistic locking property, but it's
> just a boolean
> * The persistence xml file based on
> http://www.elver.org/xsd/teneo/persistence-mapping-hibernate .xsd: Not
> surprising there is no EclipseLink setting in there.
>
> Thanks for help,
> Peter
>
>
> PS: Is there also an EclipseLink specific persistence-mapping schema?
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Powered by
FUDForum. Page generated in 0.02713 seconds