Skip to main content



      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 00:44 Go to next message
Eclipse UserFriend
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 00:49] by Moderator

Re: how to use uuid as data type in a classs [message #695543 is a reply to message #695126] Mon, 11 July 2011 20:24 Go to previous message
Eclipse UserFriend
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?
Previous Topic:Item Providers causing memory Leak?
Next Topic:Visual model of struts-config.xml
Goto Forum:
  


Current Time: Mon Jul 07 11:21:32 EDT 2025

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

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

Back to the top