Skip to main content



      Home
Home » Modeling » EMF » Adding Custom_ID to EObjects
Adding Custom_ID to EObjects [message #1243242] Mon, 10 February 2014 13:18 Go to next message
Eclipse UserFriend
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 13:21] by Moderator

Re: Adding Custom_ID to EObjects [message #1243245 is a reply to message #1243242] Mon, 10 February 2014 13:20 Go to previous messageGo to next message
Eclipse UserFriend
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 14:34 Go to previous messageGo to next message
Eclipse UserFriend
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 00:10 Go to previous messageGo to next message
Eclipse UserFriend
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 16:00 Go to previous message
Eclipse UserFriend
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: Mon Jul 07 18:21:47 EDT 2025

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

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

Back to the top