• 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
Re: Altering EOModel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Altering EOModel


  • Subject: Re: Altering EOModel
  • From: Susanne Schneider <email@hidden>
  • Date: Mon, 19 Jan 2009 19:07:45 +0100

Hi Stravros,

having done this I would rather recommend not to go this road unless you are really shure there is no other way. You will find a lot of pitfalls you did not even imagine now ;-)

At least, yes: it is possible. The API of EOF allows you to dynamically create or alter any EOModel or model property you want. The changing of database structure is not so well supported. As far as I remember there is no good solution for altering existing tables. We have our own solution for this as we only support Oracle this hasn't be too much generic for our needs.

One of the greatest problem is that no WO-application likes its eomodel to be altered. This is basically assumed to be static after startup. You can do a lot during startup, but when you have different applications or even many instances of the same application you will get synchronization problems.

It would take too much time to describe the whole process (besides I fear I'm not allowed to share too much business knowledge here).

So good luck!

Hi all,

I am developing an application where I want to give to the end user the ability to alter EOModel and database, that is to add fields in a table, or to add a new table and to be able to insert and/or edit data on this table.

I am sure that there is a way to do it but as with the whole WebObjects documentation is a miracle to find out how (at least for a new comer like me).

Can anyone suggest to me some APIs or readings about this?

I think you should also consider alternative technologies. I *believe* you might find stuff that is a lot more suited to this kind of work then WO is.


A question to the rest of the list: has anyone ever even tried doing this with WO? And I don't mean just fiddling with the in-memory model, but also saving the model, changing the DB schema on the fly etc...

see above :-)

Regards,
Susanne
--
Susanne Schneider
Coordinator secuTrial Development

iAS interActive Systems GmbH
Dieffenbachstraße 33 c, D-10967 Berlin

fon    +49(0)30 22 50 50 - 498
fax    +49(0)30 22 50 50 - 451
mail   email@hidden
web    http://www.interActive-Systems.de

----------------------------------------------------
Geschäftsführer: Dr. Marko Reschke, Thomas Fritzsche
Sitz der Gesellschaft: Berlin
Amtsgericht Berlin Charlottenburg, HRB 106103B
----------------------------------------------------
_______________________________________________
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: Altering EOModel
      • From: Stavros Panidis <email@hidden>
  • Prev by Date: W3C validation: ERXBatchNavigationBar
  • Next by Date: Re: Eclipse/WOLips not seeing multiple databases
  • Previous by thread: Re: Altering EOModel
  • Next by thread: Re: Altering EOModel
  • Index(es):
    • Date
    • Thread