myReadOnly = _entityMap.getBoolean("readOnly");
myReadOnly = _entityMap.getBoolean("isReadOnly");
  public void loadFromMap(EOModelMap _entityMap, Set _failures) throws DuplicateNameException {    myEntityMap = _entityMap;    myName = _entityMap.getString("name", true); //$NON-NLS-1$    myExternalName = _entityMap.getString("externalName", true); //$NON-NLS-1$    myClassName = _entityMap.getString("className", true); //$NON-NLS-1$    myCachesObjects = _entityMap.getBoolean("cachesObjects"); //$NON-NLS-1$    myAbstractEntity = _entityMap.getBoolean("isAbstractEntity"); //$NON-NLS-1$    myReadOnly = _entityMap.getBoolean("readOnly"); //$NON-NLS-1$    myRestrictingQualifier = _entityMap.getString("restrictingQualifier", true); //$NON-NLS-1$    myExternalQuery = _entityMap.getString("externalQuery", true); //$NON-NLS-1$    myMaxNumberOfInstancesToBatchFetch = _entityMap.getInteger("maxNumberOfInstancesToBatchFetch"); //$NON-NLS-1$    setUserInfo(_entityMap.getMap("userInfo", true), false); //$NON-NLS-1$    //Map fetchSpecifications = _entityMap.getMap("fetchSpecificationDictionary");    // TODO: Fetch Specs    Set attributeList = _entityMap.getSet("attributes"); //$NON-NLS-1$    if (attributeList != null) {      Iterator attributeIter = attributeList.iterator();      while (attributeIter.hasNext()) {        EOModelMap attributeMap = new EOModelMap((Map) attributeIter.next());        EOAttribute attribute = new EOAttribute(this);        attribute.loadFromMap(attributeMap, _failures);        addAttribute(attribute, false, _failures);      }    }    Set relationshipList = _entityMap.getSet("relationships"); //$NON-NLS-1$    if (relationshipList != null) {      Iterator relationshipIter = relationshipList.iterator();      while (relationshipIter.hasNext()) {        EOModelMap relationshipMap = new EOModelMap((Map) relationshipIter.next());        EORelationship relationship = new EORelationship(this);        relationship.loadFromMap(relationshipMap, _failures);        addRelationship(relationship, false, _failures);      }    }    Set attributesUsedForLocking = _entityMap.getSet("attributesUsedForLocking"); //$NON-NLS-1$    if (attributesUsedForLocking != null) {      Iterator attributesUsedForLockingIter = attributesUsedForLocking.iterator();      while (attributesUsedForLockingIter.hasNext()) {        String attributeName = (String) attributesUsedForLockingIter.next();        EOAttribute attribute = getAttributeNamed(attributeName);        if (attribute != null) {          attribute.setUsedForLocking(Boolean.TRUE, false);        }      }    }  }