Mixing intrinsic and extrinsic IDs [message #637553] |
Sat, 06 November 2010 15:45 |
Michael Spertus 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 |
Ed Merks Messages: 33218 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
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03925 seconds