public Map<String, Entity> getEntityMap() { return ((KeyedCollection) getEntity()).toMap(); }
public Map<String, Entity> getEntityMap() { return ((KeyedCollection) getEntity()).toMap(); }
public Map<String, Entity> getEntityMap() { return ((KeyedCollection)getEntity()).toMap(); }
for (Entity entity : cmpMappings.getEntity()) { entitiesByEjbName.put(entity.getEjbName(), entity); for (Entity mapping : userMappings.getEntity()) { logger.warning("openejb-cmp-orm.xml mapping ignored: module="+ejbModule.getModuleId()+": <entity class=\""+mapping.getClazz()+"\">"); if (!cmpMappings.getEntity().isEmpty()) { PersistenceUnit persistenceUnit = getCmpPersistenceUnit(appModule); for (Entity entity : cmpMappings.getEntity()) { persistenceUnit.getClazz().add(entity.getClazz()); for (Entity entity : appModule.getCmpMappings().getEntity()) { if (entity.getAttributes().isEmpty()){ entity.setAttributes(null);
public void convertModule(EjbModule ejbModule, EntityMappings entityMappings) { Map<String, EntityData> entities = new TreeMap<String, EntityData>(); if (entityMappings != null ) for (Entity entity : entityMappings.getEntity()) { entities.put(entity.getDescription(), new SunConversion.EntityData(entity)); } // merge data from sun-ejb-jar.xml file SunEjbJar sunEjbJar = getSunEjbJar(ejbModule); mergeEjbConfig(ejbModule, sunEjbJar); mergeEntityMappings(entities, ejbModule.getModuleId(), ejbModule.getEjbJar(), ejbModule.getOpenejbJar(), sunEjbJar); // merge data from sun-cmp-mappings.xml file SunCmpMappings sunCmpMappings = getSunCmpMappings(ejbModule); if (sunCmpMappings != null) { for (SunCmpMapping sunCmpMapping : sunCmpMappings.getSunCmpMapping()) { mergeEntityMappings(entities, ejbModule.getModuleId(), ejbModule, entityMappings, sunCmpMapping); } } }
for (final Entity entity : cmpMappings.getEntity()) { entitiesByEjbName.put(entity.getEjbName(), entity); for (final Entity mapping : userMappings.getEntity()) { logger.warning("openejb-cmp-orm.xml mapping ignored: module=" + ejbModule.getModuleId() + ": <entity class=\"" + mapping.getClazz() + "\">"); if (!cmpMappings.getEntity().isEmpty()) { final PersistenceUnit persistenceUnit = getCmpPersistenceUnit(appModule); for (final Entity entity : cmpMappings.getEntity()) { persistenceUnit.getClazz().add(entity.getClazz()); for (final Entity entity : appModule.getCmpMappings().getEntity()) { if (entity.getAttributes() != null && entity.getAttributes().isEmpty()) { entity.setAttributes(null);
public void convertModule(final EjbModule ejbModule, final EntityMappings entityMappings) { final Map<String, EntityData> entities = new TreeMap<String, EntityData>(); if (entityMappings != null) { for (final Entity entity : entityMappings.getEntity()) { entities.put(entity.getDescription(), new EntityData(entity)); } } // merge data from sun-ejb-jar.xml file final SunEjbJar sunEjbJar = getSunEjbJar(ejbModule); mergeEjbConfig(ejbModule, sunEjbJar); mergeEntityMappings(entities, ejbModule.getModuleId(), ejbModule.getEjbJar(), ejbModule.getOpenejbJar(), sunEjbJar); // merge data from sun-cmp-mappings.xml file final SunCmpMappings sunCmpMappings = getSunCmpMappings(ejbModule); if (sunCmpMappings != null) { for (final SunCmpMapping sunCmpMapping : sunCmpMappings.getSunCmpMapping()) { mergeEntityMappings(entities, ejbModule.getModuleId(), ejbModule, entityMappings, sunCmpMapping); } } }
public void convertModule(final EjbModule ejbModule, final EntityMappings entityMappings) { final Map<String, EntityData> entities = new TreeMap<String, EntityData>(); if (entityMappings != null) { for (final Entity entity : entityMappings.getEntity()) { entities.put(entity.getDescription(), new EntityData(entity)); } } // merge data from sun-ejb-jar.xml file final SunEjbJar sunEjbJar = getSunEjbJar(ejbModule); mergeEjbConfig(ejbModule, sunEjbJar); mergeEntityMappings(entities, ejbModule.getModuleId(), ejbModule.getEjbJar(), ejbModule.getOpenejbJar(), sunEjbJar); // merge data from sun-cmp-mappings.xml file final SunCmpMappings sunCmpMappings = getSunCmpMappings(ejbModule); if (sunCmpMappings != null) { for (final SunCmpMapping sunCmpMapping : sunCmpMappings.getSunCmpMapping()) { mergeEntityMappings(entities, ejbModule.getModuleId(), ejbModule, entityMappings, sunCmpMapping); } } }
for (final Entity entity : cmpMappings.getEntity()) { entitiesByEjbName.put(entity.getEjbName(), entity); for (final Entity mapping : userMappings.getEntity()) { logger.warning("openejb-cmp-orm.xml mapping ignored: module=" + ejbModule.getModuleId() + ": <entity class=\"" + mapping.getClazz() + "\">"); if (!cmpMappings.getEntity().isEmpty()) { final PersistenceUnit persistenceUnit = getCmpPersistenceUnit(appModule); for (final Entity entity : cmpMappings.getEntity()) { persistenceUnit.getClazz().add(entity.getClazz()); for (final Entity entity : appModule.getCmpMappings().getEntity()) { if (entity.getAttributes() != null && entity.getAttributes().isEmpty()) { entity.setAttributes(null);
public final void mergeEntityMappings(final String moduleId, final EntityMappings entityMappings, final OpenejbJar openejbJar, final OpenejbJarType openejbJarType) { final Map<String, EntityData> entities = new TreeMap<String, EntityData>(); if (entityMappings != null) { for (final Entity entity : entityMappings.getEntity()) { try { entities.put(entity.getDescription(), new EntityData(entity));
public final void mergeEntityMappings(final String moduleId, final EntityMappings entityMappings, final OpenejbJar openejbJar, final OpenejbJarType openejbJarType) { final Map<String, EntityData> entities = new TreeMap<String, EntityData>(); if (entityMappings != null) { for (final Entity entity : entityMappings.getEntity()) { try { entities.put(entity.getDescription(), new EntityData(entity));
public void mergeEntityMappings(String moduleId, EntityMappings entityMappings, OpenejbJar openejbJar, OpenejbJarType openejbJarType) { Map<String, EntityData> entities = new TreeMap<String, EntityData>(); if (entityMappings != null) { for (Entity entity : entityMappings.getEntity()) { entities.put(entity.getDescription(), new EntityData(entity));