Re: Framework EOModel Question
Re: Framework EOModel Question
- Subject: Re: Framework EOModel Question
- From: LD <email@hidden>
- Date: Thu, 4 Aug 2005 16:15:54 +1000
Hi there,
On 04/08/2005, at 2:44 PM, Chuck Hill wrote:
On Aug 3, 2005, at 9:20 PM, LD wrote:
That's helpful... but how do you create a framework that will make
sure a specific db plugin framework, for example, is utilised when
included in a project (that should be agnostic about the
underlying db)?
Simple, you don't. :-) The framework is db agnostic. The
application (or classpath at least) can't be. Loading prototypes
and the connection dictionary at runtime will allow your framework
and application to run with multiple databases. But at runtime you
either have to ensure the correct plugin is on the classpath or
load them all. Which amounts to the same thing, I guess.
Frameworks can't control the application's classapath beyond the
jar files contained in the framework. You could, I suppose, embed
the jar files for all possible plugins in your framework. Imagine
how much fun keeping that system updated will be!
The framework isn't db agnostic (currently) because the EOModels in
the framework are currently tied to postgres specific column
attribute types. Any tips on making the models db agnostic?
I'm utilising the postgres 'serial' type for auto-incrementing
primary keys... then there's timestamp types and so on...
with regards,
--
LD
_______________________________________________
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