• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Doing database creation before EOF gets involved ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Doing database creation before EOF gets involved ?


  • Subject: Doing database creation before EOF gets involved ?
  • From: Gavin Eadie <email@hidden>
  • Date: Thu, 30 Jan 2014 18:40:18 -0500

I'm working on a WebObjects project which uses a database of minor complexity, and am wrestling mentally with finding a good way to let the first run create the database.

Currently, the first run needs the EOModel's connection record to find the database (which is created my hand, but empty), and then uses Migration to read a SQL file that creates all the tables and fields.  But I want a kind of "turn-key" start where, if the database doesn't exist, it gets created.

My thinking so far has taken me to consider catching the exception that the missing database causes, using bare JDBC calls to create the database, and then, somehow, resuming use of the EOModel.

But I learned years ago that if things are getting complicated in the WO/EOF world, I'm not doing it right; maybe there are tricks in the heart of Wonder that would help with this?  I'd much appreciate any helpful ideas to carry this plan forward (or the suggestion to abandon it because it's an unnatural act!).

Thanks .. Gavin
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Doing database creation before EOF gets involved ?
      • From: Theodore Petrosky <email@hidden>
  • Prev by Date: Re: Including Fonts into PDF using ERPDFGeneration
  • Next by Date: Re: Doing database creation before EOF gets involved ?
  • Previous by thread: Re: Including Fonts into PDF using ERPDFGeneration
  • Next by thread: Re: Doing database creation before EOF gets involved ?
  • Index(es):
    • Date
    • Thread