Search in sources :

Example 11 with EntityBean$JAXB.writeEntityBean

use of org.apache.openejb.jee.EntityBean$JAXB.writeEntityBean in project tomee by apache.

the class ValidationBase method isCmp.

public boolean isCmp(final EnterpriseBean b) {
    if (b instanceof EntityBean) {
        final EntityBean entityBean = (EntityBean) b;
        final PersistenceType persistenceType = entityBean.getPersistenceType();
        return persistenceType == PersistenceType.CONTAINER;
    }
    return false;
}
Also used : EntityBean(org.apache.openejb.jee.EntityBean) PersistenceType(org.apache.openejb.jee.PersistenceType)

Aggregations

EntityBean (org.apache.openejb.jee.EntityBean)10 EnterpriseBean (org.apache.openejb.jee.EnterpriseBean)5 EjbJar (org.apache.openejb.jee.EjbJar)4 ArrayList (java.util.ArrayList)3 EjbDeployment (org.apache.openejb.jee.oejb3.EjbDeployment)3 HashMap (java.util.HashMap)2 List (java.util.List)2 CmpField (org.apache.openejb.jee.CmpField)2 ContainerTransaction (org.apache.openejb.jee.ContainerTransaction)2 MessageDrivenBean (org.apache.openejb.jee.MessageDrivenBean)2 SessionBean (org.apache.openejb.jee.SessionBean)2 File (java.io.File)1 Method (java.lang.reflect.Method)1 MalformedURLException (java.net.MalformedURLException)1 URL (java.net.URL)1 RemoteException (java.rmi.RemoteException)1 HashSet (java.util.HashSet)1 LinkedList (java.util.LinkedList)1 Map (java.util.Map)1 CreateException (javax.ejb.CreateException)1