writeLocalizedDescriptions(entityMgrRefNode, descriptor); appendTextChild(entityMgrRefNode, TagNames.PERSISTENCE_CONTEXT_REF_NAME, descriptor.getName()); appendTextChild(entityMgrRefNode, TagNames.PERSISTENCE_UNIT_NAME, descriptor.getUnitName()); PersistenceContextType contextType = descriptor.getPersistenceContextType(); String contextTypeString = (contextType != null && PersistenceContextType.EXTENDED.equals(contextType)) ? EXTENDED : TRANSACTION; appendTextChild(entityMgrRefNode, TagNames.PERSISTENCE_CONTEXT_TYPE, contextTypeString); Node propertyNode = appendChild(entityMgrRefNode, TagNames.PERSISTENCE_PROPERTY); appendTextChild(propertyNode, TagNames.NAME_VALUE_PAIR_NAME, property.getKey()); appendTextChild(propertyNode, TagNames.NAME_VALUE_PAIR_VALUE, property.getValue());
writeLocalizedDescriptions(entityMgrRefNode, descriptor); appendTextChild(entityMgrRefNode, TagNames.PERSISTENCE_CONTEXT_REF_NAME, descriptor.getName()); appendTextChild(entityMgrRefNode, TagNames.PERSISTENCE_UNIT_NAME, descriptor.getUnitName()); PersistenceContextType contextType = descriptor.getPersistenceContextType(); String contextTypeString = (contextType != null && PersistenceContextType.EXTENDED.equals(contextType)) ? EXTENDED : TRANSACTION; appendTextChild(entityMgrRefNode, TagNames.PERSISTENCE_CONTEXT_TYPE, contextTypeString); Node propertyNode = appendChild(entityMgrRefNode, TagNames.PERSISTENCE_PROPERTY); appendTextChild(propertyNode, TagNames.NAME_VALUE_PAIR_NAME, property.getKey()); appendTextChild(propertyNode, TagNames.NAME_VALUE_PAIR_VALUE, property.getValue());