|
Re: J2SE 5.0 annotations [message #392469 is a reply to message #392465] |
Thu, 21 April 2005 15:44 |
Ed Merks Messages: 33133 Registered: July 2009 |
Senior Member |
|
|
Kanstantsin,
There is no way to achieve this result with the current implementation
which relies on JDT's JDOM which does not support Java 1.5. We won't
even begin to look at Java 1.5 support until we start work on EMF 2.2 in
the summer. Sorry.
Kanstantsin Chernysh wrote:
> Hi.
>
> I am creating ecore model programmatically. My code looks like the
> following
>
> EcoreFactory ecoreFactory = EcoreFactoryImpl.eINSTANCE;
> EcorePackage ecorePackage = EcorePackage.eINSTANCE;
>
> EPackage testPackage = ecoreFactory.createEPackage();
> EClass testClass = ecoreFactory.createEClass();
> testClass.setName("Test");
> testPackage.getEClassifiers().add(testClass);
> EAttribute testAttribute = ecoreFactory.createEAttribute();
> testAttribute.setName("name");
> testAttribute.setEType(EcorePackage.eINSTANCE.getEString());
> ...
>
> How can I create "annotation" elements in order to get following
> annotated java code after code generation.
>
> @Entity(access = AccessType.FIELD)
> public class TestImpl extends EObjectImpl implements Test {
>
> @Transient
> String name = NAME_EDEFAULT;
> ..
> }
>
>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.01822 seconds