Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Mapping eType of reference to eType of attribute (Mapping eTypes)
Mapping eType of reference to eType of attribute [message #1001891] Thu, 17 January 2013 09:15 Go to previous message
Martin C. is currently offline Martin C.
Messages: 3
Registered: January 2013
Location: Dresden
Junior Member
Hi,

I define an ecore model with Java interfaces:

import java.net.InetAddress;

/**
 * @model
 */
public interface net {
    /**
     * @model dataType="java.net.InetAddress"
     */
    InetAddress getAddress();
}


and

import java.net.InetAddress;
import java.util.List;

/**
 * @model
 */
public interface nic {
    /**
     * @model containment="true" required="false" type="java.net.InetAddress"
     */
    List<InetAddress> getAddresses();
}


Now, I would expect that ecore uses the same eType for the attribute net.address and the reference nic.addresses. However, it uses two different eTypes: InetAddress for the attribute and InetAddress_1 for the reference.

How can I enforce that the same eType is used? And why is that happening anyways?

I'm using Eclispe Juno.

Thanks,

Martin

[Updated on: Thu, 24 January 2013 06:56]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:[CDO] 4.1 transaction rollback after a commit
Next Topic:[CDO] Unmonitored fail-over example
Goto Forum:
  


Current Time: Sun May 26 00:51:01 EDT 2013

Powered by FUDForum. Page generated in 0.04393 seconds