Re: Using ERMemoryAdaptor
Re: Using ERMemoryAdaptor
- Subject: Re: Using ERMemoryAdaptor
- From: Greg Hulands <email@hidden>
- Date: Mon, 16 Jun 2008 09:56:19 -0700
I created a Properties.junit file that contains the following.
dbConnectURLGLOBAL=
dbConnectUserGLOBAL=
dbConnectPluginGLOBAL=Memory
dbConnectDriverGLOBAL=
dbEOPrototypesEntityGLOBAL=EOMemoryPrototypes
It appears that these settings aren't taking hold... the only thing I
could think of is that I need to bootstrap the ER framework so that it
initializes everything properly. If this is the case, can someone
enlighten me on how to do this.
I have a junit test super class that loads in the Properties then the
Properties.junit files and registers them. I then call
EOModelGroup.defaultModelGroup() and check to make sure the model
loaded.
I have the active database configuration set to be to postgres so the
above properties should override it and use the memory adaptor.
Any help is greatly appreciated,
Thanks,
Greg
On 15/06/2008, at 6:49 PM, Q wrote:
Have a look at the properties files included with bugtracker. You
can use -Duser.name to switch between different databases.
On 16/06/2008, at 11:30 AM, Greg Hulands wrote:
I had actually missed that bit in the docs as I never went to the
package summary.
I'm trying to automate the testing in an ant script so having to
open the model up and switch the adaptor would not be the ideal
solution. Looking through the code to entity modeller and EOModel,
all I can think that I can do is to open the model, switch to the
Memory adaptor and then switch back to the postgres one.
Do you have any other ideas?
Thanks,
Greg
On 15/06/2008, at 1:30 PM, Mike Schrag wrote:
and:
http://webobjects.mdimension.com/wonder/api/er/memoryadaptor/package-summary.html
"To use ERMemoryAdaptor, add ERMemoryAdaptor.framework to your
project dependencies, and change the adaptor in Entity Modeler to
"Memory". Additionally, you may want to change your prototype to
EOMemoryPrototypes."
On Jun 15, 2008, at 4:16 PM, John Huss wrote:
Try these links:
http://lists.apple.com/archives/Webobjects-dev/2008/Mar/msg00762.html
http://webobjects.mdimension.com/wonder/api/er/memoryadaptor/ERMemoryAdaptor.html
On Sat, Jun 14, 2008 at 8:53 PM, Greg Hulands <email@hidden>
wrote:
Does anyone have any code for integrating this adaptor? I'm
looking at using it in junit tests.
Thanks,
greg
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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
--
Seeya...Q
Quinton Dolan - email@hidden
Gold Coast, QLD, Australia (GMT+10)
Ph: +61 419 729 806
_______________________________________________
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