Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Mixing intrinsic and extrinsic IDs
Mixing intrinsic and extrinsic IDs [message #637553] Sat, 06 November 2010 15:45 Go to next message
Michael Spertus is currently offline Michael SpertusFriend
Messages: 78
Registered: July 2009
Member
I would like a UUID to be generated for my objects that don't already have an intrinsic ID, but not to generate a UUID for objects that already have an intrinsic ID. I redefined useUUIDs() to return true on my resource type, but it adds extrinsic IDs to all my objects, even the ones that already have intrinsic IDs. Any suggestions on how to accomplish what I'm looking for?

Thanks,

Mike

[Updated on: Sat, 06 November 2010 15:46]

Report message to a moderator

Re: Mixing intrinsic and extrinsic IDs [message #637581 is a reply to message #637553] Sun, 07 November 2010 09:58 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30553
Registered: July 2009
Senior Member
Mike,

One way would be to override XMLResource.getID to return the intrinsic
ID if there is one.


Michael Spertus wrote:
> I would like a UUID to be generated for my objects that don't have an
> intrinsic ID, but not for those that do have one. I redefined
> useUUIDs() to return true on my resource type, but it adds extrinsic
> IDs to all my objects, even the ones that already have intrinsic IDs.
> Any suggestions on how to accomplish what I'm looking for?
>
> Thanks,
>
> Mike
Previous Topic:[Teneo] How to specify EclipseLink AllFieldsLockingPolicy
Next Topic:EMT Transactions
Goto Forum:
  


Current Time: Mon Oct 21 23:18:33 GMT 2019

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

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

Back to the top