Re: Creating a EOModel in code

2020-06-30 Thread Don Lindsay via Webobjects-dev
Thank you, I appreciate all your insight. > On Jun 29, 2020, at 13:04, OCsite wrote: > > Don, > >> On 29 Jun 2020, at 17:16, Don Lindsay > > wrote: >> Thanks for the information. This may be the path I will need to go down for >> this specific project. > > Good luck!

Re: Creating a EOModel in code

2020-06-29 Thread OCsite via Webobjects-dev
Don, > On 29 Jun 2020, at 17:16, Don Lindsay wrote: > Thanks for the information. This may be the path I will need to go down for > this specific project. Good luck! I have checked our sources and actually there were two small gotcha's we did bump into: (i) programmatically added attribut

Re: Creating a EOModel in code

2020-06-29 Thread Don Lindsay via Webobjects-dev
Thanks for the information. This may be the path I will need to go down for this specific project. Thanks Don > On Jun 29, 2020, at 07:14, OCsite wrote: > > Don, > > we do something remotely similar all the time (not creating a complete model, > but adding attributes dynamically at laun

Re: Creating a EOModel in code

2020-06-29 Thread OCsite via Webobjects-dev
Don, we do something remotely similar all the time (not creating a complete model, but adding attributes dynamically at launch to entities). Works without a glitch, I cannot recall any problem at all with this. Should work for you as well, I would be rather surprised if you encounter any probl

Re: Creating a EOModel in code

2020-06-28 Thread Matthew Ness via Webobjects-dev
Hi Don et al, I have written code before which dynamically creates EOEntities and relationships based on external data (both database interrogation or resource files), mainly to solve an abstraction workflow at a lower level than normal. Both using the default EOModelGroup and custom groups. It

Re: Creating a EOModel in code

2020-06-28 Thread Jesse Tayler via Webobjects-dev
Nothing stops you from connecting to the database however you’d like. I can’t quite imagine what scenario a user would enter the full connection dictionary or how an app would then connect to a database that is somehow ‘unknown’ or introduced by the user, so maybe it’s just hard for folks to ge

Re: Creating a EOModel in code

2020-06-28 Thread Don Lindsay via Webobjects-dev
Sorry if I was not clear in my first email. I don’t want to create a EOModel file. I want to take database connection properties from the user of an application and use those to build an EOModel that is used in the application while it is running on the server. The database connection paramet

Re: Creating a EOModel in code

2020-06-26 Thread Hugi Thordarson via Webobjects-dev
The APIs and syntax vary a bit in names but philosophically and design-wise it's very much the same. EOModeler will not work, there's a different tool called "Cayenne modeler", a standalone app. My primary DBs are MySQL and Postgres, both work fine with Cayenne. It's an established tool to say

Re: Creating a EOModel in code

2020-06-26 Thread Jesse Tayler via Webobjects-dev
so, my simple EOF/ERXKey qualifiers and stuff would work, I’d use EOModeler? MySQL works fine it sounds, I’m using AWS stuff myself… > On Jun 26, 2020, at 3:27 PM, Hugi Thordarson wrote: > >> Ok, so are all the cool guys using Cayenne now then? > > I've seen some pretty cool guys use it bu

Re: Creating a EOModel in code

2020-06-26 Thread Hugi Thordarson via Webobjects-dev
> Ok, so are all the cool guys using Cayenne now then? I've seen some pretty cool guys use it but I also use it. > I'm sure I should read some page about it rather than waste everyone’s time > reiterating why it’s better and why we should be moving to that sort of thing > etc. It's awesome i

Re: Creating a EOModel in code

2020-06-26 Thread Jesse Tayler via Webobjects-dev
Ok, so are all the cool guys using Cayenne now then? I'm sure I should read some page about it rather than waste everyone’s time reiterating why it’s better and why we should be moving to that sort of thing etc. > On Jun 26, 2020, at 3:10 PM, Hugi Thordarson via Webobjects-dev > wrote: >

Re: Creating a EOModel in code

2020-06-26 Thread Hugi Thordarson via Webobjects-dev
You might also want to take a look at Cayenne. It's well documented and we're eager to help where the docs fall short. And most importantly; it's an active and maintained project that didn't die over a decade ago :) - hugi > On 26 Jun 2020, at 19:04, Aaron Rosenzweig via Webobjects-dev > wr

Re: Creating a EOModel in code

2020-06-26 Thread Aaron Rosenzweig via Webobjects-dev
Hi Don, Have a look at EOEntity and friends: EOAttribute, EORelationship. You can build them out and setup the “external” name for the column, etc. I did it once as an exercise many moons ago. The only practical use I got out of it was sometimes sanity checking keyPaths to see if they hit thin

Re: Creating a EOModel in code

2020-06-25 Thread Hugi Thordarson via Webobjects-dev
It used to be a good call. As in… The best. Now don't and move on (ps: Cayenne) - hugi > On 26 Jun 2020, at 02:28, Jesse Tayler wrote: > > Hey, I use EOF! > >> On Jun 25, 2020, at 10:25 PM, Hugi Thordarson wrote: >> >> And if you're creating a new project, don't use EOF. If you must? Have a

Re: Creating a EOModel in code

2020-06-25 Thread Jesse Tayler via Webobjects-dev
Hey, I use EOF! > On Jun 25, 2020, at 10:25 PM, Hugi Thordarson wrote: > > And if you're creating a new project, don't use EOF. If you must? Have a > really. really. really. good reason. > >> On 26 Jun 2020, at 01:32, Jesse Tayler via Webobjects-dev >> wrote: >> >> You can generate your mod

Re: Creating a EOModel in code

2020-06-25 Thread Hugi Thordarson via Webobjects-dev
And if you're creating a new project, don't use EOF. If you must? Have a really. really. really. good reason. > On 26 Jun 2020, at 01:32, Jesse Tayler via Webobjects-dev > wrote: > > You can generate your model based on your data-schema. I think that’s what > you want, but you can also create

Re: Creating a EOModel in code

2020-06-25 Thread Jesse Tayler via Webobjects-dev
You can generate your model based on your data-schema. I think that’s what you want, but you can also create entities in memory and relate them by hand but I’m not sure how that would result in a model file if that’s your goal. > On Jun 25, 2020, at 8:53 PM, Don Lindsay via Webobjects-dev > wr

Creating a EOModel in code

2020-06-25 Thread Don Lindsay via Webobjects-dev
Hello; The Documentation for EOModel states that you can build one in code, but there are no examples or further information that I can find. Does anyone have any documentation or samples that they can direct me to so I can create EOModels while the application is running: What I want to do i