Re: Modelling boolean in D2W compliant way

2011-03-23 Thread Markus Ruggiero
Just to let you know what I ended up with: I created my own EditYNBoolean and QueryYNBoolean property level component. Using a custom read/write format on the attribute worked almost... The format is also being used in the where-clause against the database when the use for locking flag is set

Re: Modelling boolean in D2W compliant way

2011-03-19 Thread Markus Ruggiero
On 16.03.2011, at 14:53, Markus Ruggiero wrote: I have a (Oracle) table where boolean attributes are defined as char(1) with possible values Y, N, or NULL (is equivalent to N). Due to 3rd party apps I cannot change the database to char(5) and use the standard modelling technique of

Re: Modelling boolean in D2W compliant way

2011-03-19 Thread Ramsey Gurley
I think either you could use an attribute read/write format http://developer.apple.com/legacy/mac/library/#documentation/WebObjects/UsingEOModeler/4WorkingWithAttributes/WorkingWithAttributes.html%23//apple_ref/doc/uid/TP30001018-CH204-BABCHIIF Or you could model a custom boolean prototype using

Modelling boolean in D2W compliant way

2011-03-16 Thread Markus Ruggiero
I have a (Oracle) table where boolean attributes are defined as char(1) with possible values Y, N, or NULL (is equivalent to N). Due to 3rd party apps I cannot change the database to char(5) and use the standard modelling technique of toString() and valueOf() with Strings true and false in the