Package com.webobjects.eoaccess

Examples of com.webobjects.eoaccess.EOModel.addEntity()


                } else {
                    EOModel model = _entity.model();
                    if(model == null) {
                        model = ERXEOAccessUtilities.modelGroup(null).models().lastObject();
                    }
                    model.addEntity(_entity);
                    log.warn("Added <" + _entity.name() + "> to default model group.");
                }
            } catch (Exception ex) {
                throw new RuntimeException("Model or modelgroup for <" + _entity.name() + "> is null: " + entity().model(), ex);
            }
View Full Code Here


  public EOEntity _blankEntity() {
    EOModel newModel = _database._blankModel();
    EOEntity newEntity = new EOEntity();
    newEntity.setExternalName(_name);
    newEntity.setName("ERXMigrationTable_" + _name);
    newModel.addEntity(newEntity);
    return newEntity;
  }

  /**
   * Returns an EOEntity representing this table that
View Full Code Here

      dbUpdaterModel.setAdaptorName(model.adaptorName());

      EOEntity dbUpdaterEntity = new EOEntity();
      dbUpdaterEntity.setExternalName(migrationTableName(adaptor));
      dbUpdaterEntity.setName(migrationTableName(adaptor));
      dbUpdaterModel.addEntity(dbUpdaterEntity);

      EOAttribute modelNameAttribute = new EOAttribute();
      if (isWonderPrototype) {
        modelNameAttribute.setExternalType(prototypeEntity.attributeNamed("varchar100").externalType());
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.