how to use uuid as data type in a classs [message #695126] |
Mon, 11 July 2011 04:44 |
Jackey Cheung 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 |
Ed Merks 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/
|
|
|
Powered by
FUDForum. Page generated in 0.25180 seconds