Package org.apache.openejb.devtools.core

Examples of org.apache.openejb.devtools.core.JDTFacade.addField()


    fixture.addClassToProject("org.superbiz.ProductBean", fixture.getStreamContent(getClass().getResourceAsStream("Ejb21ProductBean.txt"))); //$NON-NLS-1$ //$NON-NLS-2$
    fixture.addClassToProject("org.superbiz.ProductHome", fixture.getStreamContent(getClass().getResourceAsStream("Ejb21ProductHome.txt"))); //$NON-NLS-1$ //$NON-NLS-2$
    fixture.addClassToProject(bean, fixture.getStreamContent(getClass().getResourceAsStream(startFilename))); //$NON-NLS-1$ //$NON-NLS-2$

    JDTFacade facade = new JDTFacade(fixture.getProject());
    facade.addField(bean, "entityManagerFactory", "javax.persistence.EntityManagerFactory");

    Map<String, Object> properties = new HashMap<String, Object>();
    properties.put("name", "TestPU");
    facade.addFieldAnnotation(bean, "entityManagerFactory", PersistenceUnit.class, properties);
   
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.