}
}
private void processEntityBeanMetaData(final DeploymentUnit deploymentUnit, final EntityBeanMetaData entity) throws DeploymentUnitProcessingException {
final EjbJarDescription ejbJarDescription = getEjbJarDescription(deploymentUnit);
final String beanName = entity.getName();
final String beanClassName = entity.getEjbClass();
if (!shouldProcess(entity)) {
return;
}
mark(deploymentUnit);
final EntityBeanComponentDescription description = createDescription(beanName, beanClassName, ejbJarDescription, deploymentUnit.getServiceName(), entity);
description.setDeploymentDescriptorEnvironment(new DeploymentDescriptorEnvironment("java:comp/env/", entity));
// add it to the ejb jar description
if (appclient) {
deploymentUnit.addToAttachmentList(Attachments.ADDITIONAL_RESOLVABLE_COMPONENTS, description);
} else {
// Add this component description to module description
ejbJarDescription.getEEModuleDescription().addComponent(description);
}
description.setPersistenceType(entity.getPersistenceType());
description.setReentrant(entity.isReentrant());
description.setPrimaryKeyType(entity.getPrimKeyClass());