Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Adding Custom_ID to EObjects
Adding Custom_ID to EObjects [message #1243242] Mon, 10 February 2014 18:18 Go to next message
UmaShankar Subramani is currently offline UmaShankar SubramaniFriend
Messages: 194
Registered: December 2011
Location: SWEDEN
Senior Member
Hi all,

I want to add Custom Unique ID to all the EObjects. This should be applicable for all EMF models which I am going to create in my application. How can I do that?

[Updated on: Mon, 10 February 2014 18:21]

Report message to a moderator

Re: Adding Custom_ID to EObjects [message #1243245 is a reply to message #1243242] Mon, 10 February 2014 18:20 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30692
Registered: July 2009
Senior Member
Maybe you can just use an XMIResourceImpl which assigns UUIDs automatically?

On 10/02/2014 7:18 PM, UmaShankar Subramani wrote:
> Hi all,
>
> I want to add a Custom_ID to all the EObjects. This should be
> applicable for all EMF models which I am going to create in my
> application. How can I do that?
Re: Adding Custom_ID to EObjects [message #1243279 is a reply to message #1243245] Mon, 10 February 2014 19:34 Go to previous messageGo to next message
UmaShankar Subramani is currently offline UmaShankar SubramaniFriend
Messages: 194
Registered: December 2011
Location: SWEDEN
Senior Member
Hi Ed,

Thanks for the information. But I do not have any idea of how to do that?

Can you give me some more hint of how to do that?



/Uma
Re: Adding Custom_ID to EObjects [message #1243535 is a reply to message #1243279] Tue, 11 February 2014 05:10 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30692
Registered: July 2009
Senior Member
Uma,

To try it with any model, set the Resource Type of the GenPackage to
XMI and specialize the
org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.useUUIDs() method of your
generated XMIResourceImpl extension to return true.

On 10/02/2014 8:34 PM, UmaShankar Subramani wrote:
> Hi Ed,
>
> Thanks for the information. But I do not have any idea of how to do
> that?
>
> Can you give me some more hint of how to do that?
>
>
>
> /Uma
Re: Adding Custom_ID to EObjects [message #1244049 is a reply to message #1243535] Tue, 11 February 2014 21:00 Go to previous message
UmaShankar Subramani is currently offline UmaShankar SubramaniFriend
Messages: 194
Registered: December 2011
Location: SWEDEN
Senior Member
Hi Ed,

It works. Thanks.



/Uma
Previous Topic:CDOID and CDOObject
Next Topic:[CDO] open a client session when running a security manager
Goto Forum:
  


Current Time: Thu Dec 12 19:09:13 GMT 2019

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

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

Back to the top