• 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
Convert EO Model from Oracle to Derby at runtime
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Convert EO Model from Oracle to Derby at runtime


  • Subject: Convert EO Model from Oracle to Derby at runtime
  • From: JR Ruggentaler <email@hidden>
  • Date: Wed, 9 Jul 2008 14:17:33 -0500

I have a EO model that I want to move some entities at runtime from an Oracle database to a local Derby database. I created a new model at run time and added the entities to the new model and removed the same entities from the other model. Then I tried using:

 EOSchemaGeneration.createTableStatementsForEntityGroup(localModel.entities());

to generate the Derby create statements but that fails at:

EOSQLExpression.columnTypeStringForAttribute();

the external types from the Oracle model are different from Derby. For example Derby doesn't recognize NUMBER and VARCHAR2. Is there some way to convert a model written for one RDBMS (Oracle) to another RDBMS (Derby)? I can manually iterate the attributes and change the attribute external type (EOAttribute.setExternalType()) but I am hoping EOF or some one on this list has a more elegant way of switching RDBMS on the fly in code.

P.S. I am using WO 5.4

JR
 _______________________________________________
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: Convert EO Model from Oracle to Derby at runtime
      • From: Andrew Lindesay <email@hidden>
    • Re: Convert EO Model from Oracle to Derby at runtime
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: some classes missing in Eclipse 3.4?
  • Next by Date: Re: Convert EO Model from Oracle to Derby at runtime
  • Previous by thread: Re: some classes missing in Eclipse 3.4?
  • Next by thread: Re: Convert EO Model from Oracle to Derby at runtime
  • Index(es):
    • Date
    • Thread