2007/9/21, Kieran Kelleher <[EMAIL PROTECTED]>:
>
> Daniele,
> The "best practice" AFAIK is considered to be the use of EOGenerator,
> which if your generation template provides for it, gives you static
> constants for key values and entity names and things like that.
>
mmm, I've never user it, I usually use EOModeler to generate the files,
where can I found a tutorial for it?
So, someone who uses EOGenerator would typically type:
> EOFetchSpecification(GWSUser.ENTITY_NAME, keyValueQualifier, null);
>
p.s. I usually edit my files adding a public static final String ENTITY_NAME
with the name of the class, but i wanted to found a way to make it easier
Regards, Kieran
>
> On Sep 21, 2007, at 4:02 AM, Daniele Corti wrote:
>
>
>
> 2007/9/20, David Holt <[EMAIL PROTECTED]>:
> >
> > Hi Daniele,
> > If you add your own model, you will likely need to add it to your
> > Resources subfolder for it to be built properly. If you put it at root
> > level, your default settings likely won't pick it up.
> >
> > Make sure that you also add the correct plugin for your database to the
> > project.
> >
> > Hope this helps,
> >
> > David
> >
>
> thank you david but yesterday at 6 pm I realise!
>
> I used this:
>
> EOFetchSpecification(GWSUser.class.getName(), keyValueQualifier, null);
>
> and of course GWSUser.class.getName() give "storev2.gestweb.GWSUser", not
> "GWSUser",
>
> damn, almost 2 hours lost for this s**t!
>
> On 20-Sep-07, at 8:33 AM, Daniele Corti wrote:
> >
> > Hi all,
> > I'm making a new version of an app, so I simply create a new Project
> > in Eclipse (I made a WonderApplication, but the problem is out wonder), then
> > I add a EOModel that I use in the other app and I get this error:
> >
> > java.lang.IllegalArgumentException: An object store for the entity "
> > store.gestweb.model.GWSUser" could not be found. Verify that the entity
> > is defined in an EOModel, and that the model is installed properly. To see
> > what models are loaded, you can try printing the return value of
> > EOModelGroup.defaultGroup() in your application.
> >
> > Ok, I delete the Model, then I create another, in EOModeler, from the
> > DB, and create the relations (the new model has a different name from the
> > previous). I add the new model to the app but I get still the error.
> >
> > I try to display EOModelGroup.defaultGroup() and I see the model is
> > installed: <EOModelGroup (("GWStoreV2",
> > "file:/Users/daniele/Documents/workspace/GWStoreV2/build/GWStoreV2.woa/Contents/Resources/GWStoreV2.eomodeld
> > "))>
> >
> > I don't know what to think, this isn't the first time I create a new
> > app.
> >
> > Thanks for every help!
> >
> > --
> > Daniele Corti
> > AIM: S0CR4TE5
> > Messenger: [EMAIL PROTECTED]
> >
> > --
> > Computers are like air conditioners -- they stop working properly if you
> > open
> > WINDOWS
> >
> > --
> > What about the four lusers of the apocalypse? I nominate:
> > "advertising", "can't log in", "power switch" and "what backup?"
> > --Alistair Young
> > _______________________________________________
> > Do not post admin requests to the list. They will be ignored.
> > Webobjects-dev mailing list ([email protected])
> > Help/Unsubscribe/Update your Subscription:
> >
> > http://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com
> >
> > This email sent to [EMAIL PROTECTED]
> >
> >
> >
>
>
> --
> Daniele Corti
> AIM: S0CR4TE5
> Messenger: [EMAIL PROTECTED]
>
> --
> Computers are like air conditioners -- they stop working properly if you
> open
> WINDOWS
>
> --
> What about the four lusers of the apocalypse? I nominate:
> "advertising", "can't log in", "power switch" and "what backup?"
> --Alistair Young _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list ([email protected])
> Help/Unsubscribe/Update your Subscription:
>
> http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists%40mac.com
>
> This email sent to [EMAIL PROTECTED]
>
>
>
--
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]
--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS
--
What about the four lusers of the apocalypse? I nominate:
"advertising", "can't log in", "power switch" and "what backup?"
--Alistair Young
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]