If you're not using Wonder, i BELIEVE (it's been a while) that you can just do:

  public static void main(String[] args) throws MalformedURLException {
EOModelGroup.defaultGroup().addModelWithPathURL(new File("/path/ to/your/model1.eomodeld").toURL()); EOModelGroup.defaultGroup().addModelWithPathURL(new File("/path/ to/your/model2.eomodeld").toURL());
    // ... do that for each model in your model group ...

    EOEditingContext editingContext = new EOEditingContext();
    // ... do your EOF stuff ...
    editingContext.saveChanges();
  }

On Mar 24, 2008, at 12:33 PM, John Huss wrote:

If you use ERXMainRunner in Wonder this will "just work" without having to do anything special.

On Mon, Mar 24, 2008 at 11:30 AM, J Stephanos <[EMAIL PROTECTED]> wrote: Does anyone have a working version of a pure EOF example, no web stuff, just a simple command line program to insert objects in to db? Have a 1 table/entity simple eomodel already. Need to load model (mysql db) and insert a few objects.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimension.com

This email sent to [EMAIL PROTECTED]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to