Executing simple one-time tasks using EOF
Executing simple one-time tasks using EOF
- Subject: Executing simple one-time tasks using EOF
- From: Hugi Thordarson <email@hidden>
- Date: Sat, 28 Jun 2014 21:48:23 +0000
Am I the only one who writes a direct action class every time I need to do EOF-related one-time tasks in my apps, such as DB cleanup, imports, exports etc?
After writing my one-millionth task like this tonight I just realized how deeply, horribly wrong it is, and before I start finding better ways on my own I thought I'd hear from the community. Can anyone recommend a different way? Are people using ERXExtensions.initEOF() or ERXExtensions.initApp() for stuff like this? Or something else?
Paraphrased: You have an EOModel and you need to execute a single, one-time task using the model (probably throwing the code out afterwards). What do you do?
Cheers,
- hugi
_______________________________________________
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