Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Modeling (top-level project) » how to use uuid as data type in a classs
how to use uuid as data type in a classs [message #695126] Mon, 11 July 2011 04:44 Go to next message
Jackey Cheung is currently offline Jackey CheungFriend
Messages: 6
Registered: January 2011
Junior Member
Hi, I'm new to EMF. I'm trying to describe a class in EMF, in Java code it is:

public class Pet
{
protected UUID id;
protected String name;

// other stuffs
}

I've also tried to create a EDataType, but I can't find UUID in the base type list.

When I tried to add the attribute "id" to EMF model, I can't find java.util.UUID in the list. How should I do it?

[Updated on: Mon, 11 July 2011 04:49]

Report message to a moderator

Re: how to use uuid as data type in a classs [message #695543 is a reply to message #695126] Tue, 12 July 2011 00:24 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33107
Registered: July 2009
Senior Member
Jackey,

Please ask EMF questions on the eclipse.tools.emf forum/newsgroup.

You'll need to create your own EDataType for this. The introductory
overview has a section about how to do that.



On 10/07/2011 9:44 PM, Jackey Cheung wrote:
> Hi, I'm new to EMF. I'm trying to describe a class in EMF, in Java
> code it is:
>
> public class Pet
> {
> protected UUID id;
> protected String name;
>
> // other stuffs
> }
>
> When I tried to add the attribute "id" to EMF model, I can't find
> java.util.UUID in the list. How should I do it?


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Item Providers causing memory Leak?
Next Topic:Visual model of struts-config.xml
Goto Forum:
  


Current Time: Tue Mar 19 05:01:15 GMT 2024

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

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

Back to the top