Re: Entity/attribute/relationship terrible toString?

2020-06-02 Thread ocs--- via Webobjects-dev
Aaron,

> On 2. 6. 2020, at 7:40 PM, Aaron Rosenzweig  wrote:
> Generally I don’t have logging coming out about relationships nor the object 
> graph.

Yea, same here; in decades of using WO I've bumped into the model class 
toString madness just a couple of times, neither of them serious.

Nevertheless in my current project I've got an issue collector, which collects 
issues by owner; and it so happens that aside of EOs and other “normal” objects 
(none of which makes any problem) some issues might be owned by entities and/or 
attributes of a model (luckily, so far, not by a model itself; the thing far as 
I recall toStrings its complete contents too. Ick!)

Normally, it still works quite all right, but if there's a problem and I switch 
my logs to trace level or below, I am printing out all the underlying data 
structures, which happen to be sorta complex maps (and weakhashmaps and similar 
beasts), and the model classes do real big harm in there.

> I suppose you’ll have to look at what is generating those logs and have some 
> sort of preprocessor that does something “smart” for the display of your 
> object graph. Maybe a big if/else block for each your relationships or maybe 
> something generic if that’s good enough that has heuristics for display 
> names. 

Yup, I've considered that, but to be forced to implement a complete property 
list recursive printout myself, solving properly all the Iterables and Maps and 
Object[]'s and hell-knows-what just to tame an idio... well, ahem, 
not-too-reasonably implemented toString of three classes seems just a bit at 
the rube-goldbergish side to me :/

Thanks anyway!
OC

>> On Jun 2, 2020, at 1:36 PM, ocs--- via Webobjects-dev 
>> mailto:webobjects-dev@lists.apple.com>> 
>> wrote:
>> 
>> Paul,
>> 
>>> On 2. 6. 2020, at 2:05 PM, Paul Yu mailto:p...@mac.com>> 
>>> wrote:
>>> There are two templates _EO and EO.java that are used by eogenerate to 
>>> create your EO classes.  If you open your Eogenerate File you can see where 
>>> your templates are.
>> 
>> Can't recall anything like that from WO. Isn't that some 
>> Eclipse/WOLips-specific thing? I don't use Eclipse anymore; I am yet to see 
>> a worse IDE. Having tested many of them (and having suffered with Eclipse 
>> for some years), eventually I stick with Xcode, which is far from perfect 
>> too and it definitely has a plethora of ugly quirks, but at the very least 
>> it is infinitely better than the Eclipse disaster (and aside of that, I do 
>> all my *OS development in there, and it's quite convenient to use one and 
>> the same IDE for all the work; myself, I found switching IDEs really 
>> inconvenient. As always, your mileage may vary ;))
>> 
>> Besides, well, you got me ranting, but anyway: I do not, not, not use 
>> generated code, in my opinion and experience, that's one very very bad 
>> approach. My EO classes are based on my own superclass which reads in the 
>> model at startup and installs the appropriate accessors dynamically (in a 
>> way quite similar, though of course not identical, to CoreData). And it, 
>> quite naturally, also contains my own overridden toString.
>> 
>> Which all seems to me completely beside the point. From the very beginning, 
>> I am writing of entities/attributes/relationships, not EO classes. I can do 
>> almost whatever I want with the EO classes, but so far, I haven't succeeded 
>> to find any way to affect toStrings of entities/attributes/relationships 
>> (i.e., the EOEntity, EOAttribute and EORelationship class).
>> 
>> Or do I miss something of importance here?
>> 
>> Thanks,
>> OC
>> 
 On Jun 2, 2020, at 7:04 AM, OCsite via Webobjects-dev 
 mailto:webobjects-dev@lists.apple.com>> 
 wrote:
 
 Markus,
 
> On 2 Jun 2020, at 12:09, Markus Ruggiero  > wrote:
> Why not simply override toString() in EOGenerate templates once and for 
> all?
 
 What are “EOGenerate templates” and how they affect the 
 entities/attributes/relationships toStrings? I can't find anything like 
 that in my WO documentation. Seems it might be the right solution... if I 
 knew what it is :)
 
 Thanks!
 OC
 
> 
>>> On 2 Jun 2020, at 01:52, ocs--- via Webobjects-dev 
>>> >> > wrote:
>> 
>> Hi there,
>> 
>> occasionally, I need to put entities/attributes/relationships into 
>> complex nested property lists. Occasionally for debug, I need to print 
>> out these property lists.
>> 
>> Alas, entities/attributes/relationships normally print out their 
>> complete contents in their toStrings, which makes the logs completely 
>> unuseable (and when there's more of them in a property list, actually 
>> bogs down the application so much it must be killed).
>> 
>> Isn't there some trick to make those darned model classes toString 
>> something reasonable, e.g., just their class, 

Re: Entity/attribute/relationship terrible toString?

2020-06-02 Thread Aaron Rosenzweig via Webobjects-dev
Hi OC,

Yeah we missed your point. We gave you advice about the EO but not the 
relationships. 

Generally I don’t have logging coming out about relationships nor the object 
graph. I suppose you’ll have to look at what is generating those logs and have 
some sort of preprocessor that does something “smart” for the display of your 
object graph. Maybe a big if/else block for each your relationships or maybe 
something generic if that’s good enough that has heuristics for display names. 
AARON ROSENZWEIG / Chat 'n Bike 
e:  aa...@chatnbike.com   t:  (301) 956-2319



> On Jun 2, 2020, at 1:36 PM, ocs--- via Webobjects-dev 
>  wrote:
> 
> Paul,
> 
>> On 2. 6. 2020, at 2:05 PM, Paul Yu mailto:p...@mac.com>> 
>> wrote:
>> There are two templates _EO and EO.java that are used by eogenerate to 
>> create your EO classes.  If you open your Eogenerate File you can see where 
>> your templates are.
> 
> Can't recall anything like that from WO. Isn't that some 
> Eclipse/WOLips-specific thing? I don't use Eclipse anymore; I am yet to see a 
> worse IDE. Having tested many of them (and having suffered with Eclipse for 
> some years), eventually I stick with Xcode, which is far from perfect too and 
> it definitely has a plethora of ugly quirks, but at the very least it is 
> infinitely better than the Eclipse disaster (and aside of that, I do all my 
> *OS development in there, and it's quite convenient to use one and the same 
> IDE for all the work; myself, I found switching IDEs really inconvenient. As 
> always, your mileage may vary ;))
> 
> Besides, well, you got me ranting, but anyway: I do not, not, not use 
> generated code, in my opinion and experience, that's one very very bad 
> approach. My EO classes are based on my own superclass which reads in the 
> model at startup and installs the appropriate accessors dynamically (in a way 
> quite similar, though of course not identical, to CoreData). And it, quite 
> naturally, also contains my own overridden toString.
> 
> Which all seems to me completely beside the point. From the very beginning, I 
> am writing of entities/attributes/relationships, not EO classes. I can do 
> almost whatever I want with the EO classes, but so far, I haven't succeeded 
> to find any way to affect toStrings of entities/attributes/relationships 
> (i.e., the EOEntity, EOAttribute and EORelationship class).
> 
> Or do I miss something of importance here?
> 
> Thanks,
> OC
> 
>>> On Jun 2, 2020, at 7:04 AM, OCsite via Webobjects-dev 
>>> mailto:webobjects-dev@lists.apple.com>> 
>>> wrote:
>>> 
>>> Markus,
>>> 
 On 2 Jun 2020, at 12:09, Markus Ruggiero >>> > wrote:
 Why not simply override toString() in EOGenerate templates once and for 
 all?
>>> 
>>> What are “EOGenerate templates” and how they affect the 
>>> entities/attributes/relationships toStrings? I can't find anything like 
>>> that in my WO documentation. Seems it might be the right solution... if I 
>>> knew what it is :)
>>> 
>>> Thanks!
>>> OC
>>> 
 
>> On 2 Jun 2020, at 01:52, ocs--- via Webobjects-dev 
>> mailto:webobjects-dev@lists.apple.com>> 
>> wrote:
> 
> Hi there,
> 
> occasionally, I need to put entities/attributes/relationships into 
> complex nested property lists. Occasionally for debug, I need to print 
> out these property lists.
> 
> Alas, entities/attributes/relationships normally print out their complete 
> contents in their toStrings, which makes the logs completely unuseable 
> (and when there's more of them in a property list, actually bogs down the 
> application so much it must be killed).
> 
> Isn't there some trick to make those darned model classes toString 
> something reasonable, e.g., just their class, name and hash?
> 
> Thanks,
> OC
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
> )
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/steiner%40rucotec.ch
>  
> 
> 
> This email sent to stei...@rucotec.ch
 
>>> 
>>> ___
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>>> )
>>> Help/Unsubscribe/Update your Subscription:
>>> https://lists.apple.com/mailman/options/webobjects-dev/pyu%40mac.com 
>>> 
>>> 
>>> This email sent to p...@mac.com
> 
> ___
> Do not post 

Re: Entity/attribute/relationship terrible toString?

2020-06-02 Thread Jesse Tayler via Webobjects-dev
EOF uses this template system -- don’t think of it as generated code but rather 
boiler plates no different than using Wonder or even a library to do math.

Read the code and you’ll see it’s quite intelligently surrounding your object 
model with useful, reliable foundations that are valuable.

Your model is text, this needs to reflect as an object in memory and this 
template bridge starts off that process for you in a way that makes sense and 
you’ll find useful for sure.


> On Jun 2, 2020, at 1:36 PM, ocs--- via Webobjects-dev 
>  wrote:
> 
> Paul,
> 
>> On 2. 6. 2020, at 2:05 PM, Paul Yu  wrote:
>> There are two templates _EO and EO.java that are used by eogenerate to 
>> create your EO classes.  If you open your Eogenerate File you can see where 
>> your templates are.
> 
> Can't recall anything like that from WO. Isn't that some 
> Eclipse/WOLips-specific thing? I don't use Eclipse anymore; I am yet to see a 
> worse IDE. Having tested many of them (and having suffered with Eclipse for 
> some years), eventually I stick with Xcode, which is far from perfect too and 
> it definitely has a plethora of ugly quirks, but at the very least it is 
> infinitely better than the Eclipse disaster (and aside of that, I do all my 
> *OS development in there, and it's quite convenient to use one and the same 
> IDE for all the work; myself, I found switching IDEs really inconvenient. As 
> always, your mileage may vary ;))
> 
> Besides, well, you got me ranting, but anyway: I do not, not, not use 
> generated code, in my opinion and experience, that's one very very bad 
> approach. My EO classes are based on my own superclass which reads in the 
> model at startup and installs the appropriate accessors dynamically (in a way 
> quite similar, though of course not identical, to CoreData). And it, quite 
> naturally, also contains my own overridden toString.
> 
> Which all seems to me completely beside the point. From the very beginning, I 
> am writing of entities/attributes/relationships, not EO classes. I can do 
> almost whatever I want with the EO classes, but so far, I haven't succeeded 
> to find any way to affect toStrings of entities/attributes/relationships 
> (i.e., the EOEntity, EOAttribute and EORelationship class).
> 
> Or do I miss something of importance here?
> 
> Thanks,
> OC
> 
>>> On Jun 2, 2020, at 7:04 AM, OCsite via Webobjects-dev 
>>>  wrote:
>>> 
>>> Markus,
>>> 
 On 2 Jun 2020, at 12:09, Markus Ruggiero  wrote:
 Why not simply override toString() in EOGenerate templates once and for 
 all?
>>> 
>>> What are “EOGenerate templates” and how they affect the 
>>> entities/attributes/relationships toStrings? I can't find anything like 
>>> that in my WO documentation. Seems it might be the right solution... if I 
>>> knew what it is :)
>>> 
>>> Thanks!
>>> OC
>>> 
 
>> On 2 Jun 2020, at 01:52, ocs--- via Webobjects-dev 
>>  wrote:
> 
> Hi there,
> 
> occasionally, I need to put entities/attributes/relationships into 
> complex nested property lists. Occasionally for debug, I need to print 
> out these property lists.
> 
> Alas, entities/attributes/relationships normally print out their complete 
> contents in their toStrings, which makes the logs completely unuseable 
> (and when there's more of them in a property list, actually bogs down the 
> application so much it must be killed).
> 
> Isn't there some trick to make those darned model classes toString 
> something reasonable, e.g., just their class, name and hash?
> 
> Thanks,
> OC
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/steiner%40rucotec.ch
> 
> This email sent to stei...@rucotec.ch
 
>>> 
>>> ___
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>>> Help/Unsubscribe/Update your Subscription:
>>> https://lists.apple.com/mailman/options/webobjects-dev/pyu%40mac.com
>>> 
>>> This email sent to p...@mac.com
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.com
> 
> This email sent to jtay...@oeinc.com

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com


Re: Entity/attribute/relationship terrible toString?

2020-06-02 Thread ocs--- via Webobjects-dev
Paul,

> On 2. 6. 2020, at 2:05 PM, Paul Yu  wrote:
> There are two templates _EO and EO.java that are used by eogenerate to create 
> your EO classes.  If you open your Eogenerate File you can see where your 
> templates are.

Can't recall anything like that from WO. Isn't that some 
Eclipse/WOLips-specific thing? I don't use Eclipse anymore; I am yet to see a 
worse IDE. Having tested many of them (and having suffered with Eclipse for 
some years), eventually I stick with Xcode, which is far from perfect too and 
it definitely has a plethora of ugly quirks, but at the very least it is 
infinitely better than the Eclipse disaster (and aside of that, I do all my *OS 
development in there, and it's quite convenient to use one and the same IDE for 
all the work; myself, I found switching IDEs really inconvenient. As always, 
your mileage may vary ;))

Besides, well, you got me ranting, but anyway: I do not, not, not use generated 
code, in my opinion and experience, that's one very very bad approach. My EO 
classes are based on my own superclass which reads in the model at startup and 
installs the appropriate accessors dynamically (in a way quite similar, though 
of course not identical, to CoreData). And it, quite naturally, also contains 
my own overridden toString.

Which all seems to me completely beside the point. From the very beginning, I 
am writing of entities/attributes/relationships, not EO classes. I can do 
almost whatever I want with the EO classes, but so far, I haven't succeeded to 
find any way to affect toStrings of entities/attributes/relationships (i.e., 
the EOEntity, EOAttribute and EORelationship class).

Or do I miss something of importance here?

Thanks,
OC

>> On Jun 2, 2020, at 7:04 AM, OCsite via Webobjects-dev 
>>  wrote:
>> 
>> Markus,
>> 
>>> On 2 Jun 2020, at 12:09, Markus Ruggiero  wrote:
>>> Why not simply override toString() in EOGenerate templates once and for all?
>> 
>> What are “EOGenerate templates” and how they affect the 
>> entities/attributes/relationships toStrings? I can't find anything like that 
>> in my WO documentation. Seems it might be the right solution... if I knew 
>> what it is :)
>> 
>> Thanks!
>> OC
>> 
>>> 
> On 2 Jun 2020, at 01:52, ocs--- via Webobjects-dev 
>  wrote:
 
 Hi there,
 
 occasionally, I need to put entities/attributes/relationships into complex 
 nested property lists. Occasionally for debug, I need to print out these 
 property lists.
 
 Alas, entities/attributes/relationships normally print out their complete 
 contents in their toStrings, which makes the logs completely unuseable 
 (and when there's more of them in a property list, actually bogs down the 
 application so much it must be killed).
 
 Isn't there some trick to make those darned model classes toString 
 something reasonable, e.g., just their class, name and hash?
 
 Thanks,
 OC
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/steiner%40rucotec.ch
 
 This email sent to stei...@rucotec.ch
>>> 
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/pyu%40mac.com
>> 
>> This email sent to p...@mac.com

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Entity/attribute/relationship terrible toString?

2020-06-02 Thread Hugi Thordarson via Webobjects-dev
You could also specify your own EO superclass in the EOModel and override 
toString() globally in that class, right? That way you can avoid messing with 
the EOGenerator templates. (disclaimer: it's been a while since I've touched 
EOF) 

Cheers,
- hugi


> On 2 Jun 2020, at 12:05, Paul Yu via Webobjects-dev 
>  wrote:
> 
> There are two templates _EO and EO.java that are used by eogenerate to create 
> your EO classes.  If you open your Eogenerate File you can see where your 
> templates are.
> 
> Paul
> 
> 
> Sent from my iPhone
> Please excuse iOS autocomplete 
> 
>> On Jun 2, 2020, at 7:04 AM, OCsite via Webobjects-dev 
>>  wrote:
>> 
>> Markus,
>> 
>>> On 2 Jun 2020, at 12:09, Markus Ruggiero  wrote:
>>> Why not simply override toString() in EOGenerate templates once and for all?
>> 
>> What are “EOGenerate templates” and how they affect the 
>> entities/attributes/relationships toStrings? I can't find anything like that 
>> in my WO documentation. Seems it might be the right solution... if I knew 
>> what it is :)
>> 
>> Thanks!
>> OC
>> 
>>> 
> On 2 Jun 2020, at 01:52, ocs--- via Webobjects-dev 
>  wrote:
 
 Hi there,
 
 occasionally, I need to put entities/attributes/relationships into complex 
 nested property lists. Occasionally for debug, I need to print out these 
 property lists.
 
 Alas, entities/attributes/relationships normally print out their complete 
 contents in their toStrings, which makes the logs completely unuseable 
 (and when there's more of them in a property list, actually bogs down the 
 application so much it must be killed).
 
 Isn't there some trick to make those darned model classes toString 
 something reasonable, e.g., just their class, name and hash?
 
 Thanks,
 OC
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/steiner%40rucotec.ch
 
 This email sent to stei...@rucotec.ch
>>> 
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/pyu%40mac.com
>> 
>> This email sent to p...@mac.com
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/hugi%40karlmenn.is
> 
> This email sent to h...@karlmenn.is

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Entity/attribute/relationship terrible toString?

2020-06-02 Thread Jérémy DE ROYER via Webobjects-dev
Have a look in Eclipse > Preferences > WOLips > EOGenerator to find your files 
path.

Jérémy

Le 2 juin 2020 à 14:05, Paul Yu via Webobjects-dev 
mailto:webobjects-dev@lists.apple.com>> a écrit 
:

There are two templates _EO and EO.java that are used by eogenerate to create 
your EO classes.  If you open your Eogenerate File you can see where your 
templates are.

Paul


Sent from my iPhone
Please excuse iOS autocomplete

On Jun 2, 2020, at 7:04 AM, OCsite via Webobjects-dev 
mailto:webobjects-dev@lists.apple.com>> wrote:

Markus,

On 2 Jun 2020, at 12:09, Markus Ruggiero 
mailto:mailingli...@kataputt.com>> wrote:
Why not simply override toString() in EOGenerate templates once and for all?

What are “EOGenerate templates” and how they affect the 
entities/attributes/relationships toStrings? I can't find anything like that in 
my WO documentation. Seems it might be the right solution... if I knew what it 
is :)

Thanks!
OC


On 2 Jun 2020, at 01:52, ocs--- via Webobjects-dev 
mailto:webobjects-dev@lists.apple.com>> wrote:

Hi there,

occasionally, I need to put entities/attributes/relationships into complex 
nested property lists. Occasionally for debug, I need to print out these 
property lists.

Alas, entities/attributes/relationships normally print out their complete 
contents in their toStrings, which makes the logs completely unuseable (and 
when there's more of them in a property list, actually bogs down the 
application so much it must be killed).

Isn't there some trick to make those darned model classes toString something 
reasonable, e.g., just their class, name and hash?

Thanks,
OC

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  
(Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/steiner%40rucotec.ch

This email sent to stei...@rucotec.ch


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  
(Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/pyu%40mac.com

This email sent to p...@mac.com
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  
(Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/jeremy.deroyer%40ingencys.net

This email sent to 
jeremy.dero...@ingencys.net

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Entity/attribute/relationship terrible toString?

2020-06-02 Thread Markus Ruggiero via Webobjects-dev
When you create your EOModel you also designate Java classes that should model 
the Java side of life. In Eclipse you then have to "EOGenerate" the class 
files. This generation is template driven. You can find the Wonder Templates as 
part of the Wonder Source. Take them, modify them to your liking and use them 
to generate the class files. Open the .eogen file in side Resources within in 
your project by double clicking it and you'll see in the lower third the spec 
of the templates to use. Add your own template folder (which is by default not 
set, thus pointing to WOLips internal templates).

---markus---

> On 2 Jun 2020, at 13:02, OCsite  wrote:
> 
> Markus,
> 
>> On 2 Jun 2020, at 12:09, Markus Ruggiero  wrote:
>> Why not simply override toString() in EOGenerate templates once and for all?
> 
> What are “EOGenerate templates” and how they affect the 
> entities/attributes/relationships toStrings? I can't find anything like that 
> in my WO documentation. Seems it might be the right solution... if I knew 
> what it is :)
> 
> Thanks!
> OC
> 
>> 
>>> On 2 Jun 2020, at 01:52, ocs--- via Webobjects-dev 
>>>  wrote:
>>> 
>>> Hi there,
>>> 
>>> occasionally, I need to put entities/attributes/relationships into complex 
>>> nested property lists. Occasionally for debug, I need to print out these 
>>> property lists.
>>> 
>>> Alas, entities/attributes/relationships normally print out their complete 
>>> contents in their toStrings, which makes the logs completely unuseable (and 
>>> when there's more of them in a property list, actually bogs down the 
>>> application so much it must be killed).
>>> 
>>> Isn't there some trick to make those darned model classes toString 
>>> something reasonable, e.g., just their class, name and hash?
>>> 
>>> Thanks,
>>> OC
>>> 
>>> ___
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>>> Help/Unsubscribe/Update your Subscription:
>>> https://lists.apple.com/mailman/options/webobjects-dev/steiner%40rucotec.ch
>>> 
>>> This email sent to stei...@rucotec.ch
>> 
> 

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Entity/attribute/relationship terrible toString?

2020-06-02 Thread Paul Yu via Webobjects-dev
There are two templates _EO and EO.java that are used by eogenerate to create 
your EO classes.  If you open your Eogenerate File you can see where your 
templates are.

Paul


Sent from my iPhone
Please excuse iOS autocomplete 

> On Jun 2, 2020, at 7:04 AM, OCsite via Webobjects-dev 
>  wrote:
> 
> Markus,
> 
>> On 2 Jun 2020, at 12:09, Markus Ruggiero  wrote:
>> Why not simply override toString() in EOGenerate templates once and for all?
> 
> What are “EOGenerate templates” and how they affect the 
> entities/attributes/relationships toStrings? I can't find anything like that 
> in my WO documentation. Seems it might be the right solution... if I knew 
> what it is :)
> 
> Thanks!
> OC
> 
>> 
 On 2 Jun 2020, at 01:52, ocs--- via Webobjects-dev 
  wrote:
>>> 
>>> Hi there,
>>> 
>>> occasionally, I need to put entities/attributes/relationships into complex 
>>> nested property lists. Occasionally for debug, I need to print out these 
>>> property lists.
>>> 
>>> Alas, entities/attributes/relationships normally print out their complete 
>>> contents in their toStrings, which makes the logs completely unuseable (and 
>>> when there's more of them in a property list, actually bogs down the 
>>> application so much it must be killed).
>>> 
>>> Isn't there some trick to make those darned model classes toString 
>>> something reasonable, e.g., just their class, name and hash?
>>> 
>>> Thanks,
>>> OC
>>> 
>>> ___
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>>> Help/Unsubscribe/Update your Subscription:
>>> https://lists.apple.com/mailman/options/webobjects-dev/steiner%40rucotec.ch
>>> 
>>> This email sent to stei...@rucotec.ch
>> 
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/pyu%40mac.com
> 
> This email sent to p...@mac.com
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Entity/attribute/relationship terrible toString?

2020-06-02 Thread OCsite via Webobjects-dev
Markus,

> On 2 Jun 2020, at 12:09, Markus Ruggiero  wrote:
> Why not simply override toString() in EOGenerate templates once and for all?

What are “EOGenerate templates” and how they affect the 
entities/attributes/relationships toStrings? I can't find anything like that in 
my WO documentation. Seems it might be the right solution... if I knew what it 
is :)

Thanks!
OC

> 
>> On 2 Jun 2020, at 01:52, ocs--- via Webobjects-dev 
>>  wrote:
>> 
>> Hi there,
>> 
>> occasionally, I need to put entities/attributes/relationships into complex 
>> nested property lists. Occasionally for debug, I need to print out these 
>> property lists.
>> 
>> Alas, entities/attributes/relationships normally print out their complete 
>> contents in their toStrings, which makes the logs completely unuseable (and 
>> when there's more of them in a property list, actually bogs down the 
>> application so much it must be killed).
>> 
>> Isn't there some trick to make those darned model classes toString something 
>> reasonable, e.g., just their class, name and hash?
>> 
>> Thanks,
>> OC
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/steiner%40rucotec.ch
>> 
>> This email sent to stei...@rucotec.ch
> 

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Entity/attribute/relationship terrible toString?

2020-06-02 Thread Markus Ruggiero via Webobjects-dev
Why not simply override toString() in EOGenerate templates once and for all?

> On 2 Jun 2020, at 01:52, ocs--- via Webobjects-dev 
>  wrote:
> 
> Hi there,
> 
> occasionally, I need to put entities/attributes/relationships into complex 
> nested property lists. Occasionally for debug, I need to print out these 
> property lists.
> 
> Alas, entities/attributes/relationships normally print out their complete 
> contents in their toStrings, which makes the logs completely unuseable (and 
> when there's more of them in a property list, actually bogs down the 
> application so much it must be killed).
> 
> Isn't there some trick to make those darned model classes toString something 
> reasonable, e.g., just their class, name and hash?
> 
> Thanks,
> OC
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/steiner%40rucotec.ch
> 
> This email sent to stei...@rucotec.ch

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com