[transfer-dev] Re: handling boolean values

2009-08-26 Thread Bob Silverberg
OK, well if they're nullable you could use configure() to default the property to NULL, and then check for nulls in your method rather than checking for "". Does that make sense? On Wed, Aug 26, 2009 at 9:15 PM, Jim Rising wrote: > I just got your previous email on that... (after i sent my last

[transfer-dev] Re: handling boolean values

2009-08-26 Thread Jim Rising
I just got your previous email on that... (after i sent my last). I checked my local transfer config, and nullable="true". I have to pull my laptop up to date with svn ... been awhile since i've worked from it... and all my tests are failing at the moment. thanks for all the help here! -jim On

[transfer-dev] Re: handling boolean values

2009-08-26 Thread Bob Silverberg
Which brings me back to my question: Is loginRequired nullable? On Wed, Aug 26, 2009 at 9:02 PM, Jim Rising wrote: > that would be great if i could actually evaluate it as empty or null. my > if(loginRequired GT "") evaluation is an attempt at not including > loginRequired in the map. if i can on

[transfer-dev] Re: handling boolean values

2009-08-26 Thread Jim Rising
that would be great if i could actually evaluate it as empty or null. my if(loginRequired GT "") evaluation is an attempt at not including loginRequired in the map. if i can only conditionally evaluate a boolean as true or false and not "" (empty) or NULL, i do not have the ability to dynamically e

[transfer-dev] Re: handling boolean values

2009-08-26 Thread Bob Silverberg
Is loginRequired nullable? If so you might be able to do something with Transfer's null support. On Wed, Aug 26, 2009 at 6:29 PM, Jim Rising wrote: > > see... the thing is, evaluating against a '0' for numeric ... or a > '-0 ... etc...' for UUID is easy... (unless you actually want > it

[transfer-dev] Re: handling boolean values

2009-08-26 Thread Mark Mandel
But I can see that you are including it in your: map.loginRequired If you don't want to filter by it, then don't include it in the listByPropertyMap() Mark On Thu, Aug 27, 2009 at 7:35 AM, Jim Rising wrote: > > no. i want both true and false (all records independent of the boolean > field). >

[transfer-dev] Re: handling boolean values

2009-08-26 Thread Jim Rising
this might explain the problem better... 1) in my handler, i'm creating a transfer object from event scope attributes. 2) i pass this transfer object to my manager 3) my manager evaluates if any of the getters have values 4) if my manager sees a default value for numerics or uuid ... it ignores i

[transfer-dev] Re: handling boolean values

2009-08-26 Thread Jim Rising
see... the thing is, evaluating against a '0' for numeric ... or a '-0 ... etc...' for UUID is easy... (unless you actually want it to return valid records with these values!) ... because the likelyhood of me requesting an ID or UUID with the value of '0' is pretty slim. but in my case whe

[transfer-dev] Re: manytoone duplicate column on insert

2009-08-26 Thread Jim Rising
yeah... i had thought that... and had removed it, but when i do that, i (obviously) don't have a getter or setter available for setApiEventID(). component [workspace.svn_fiduciaryEdge.trunk.model.decorators.apiEventMap] has no function with name [GETAPIEVENTID] component [workspace.svn_fiduciaryE

[transfer-dev] Re: manytoone duplicate column on insert

2009-08-26 Thread Matt Quackenbush
You cannot set an FK as both a and a relationship. There are many threads on this topic. Be sure to check out the docs as well. http://docs.transfer-orm.com/wiki/Transfer_Configuration_File.cfm --~--~-~--~~~---~--~~ Before posting questions to the group please r

[transfer-dev] Re: handling boolean values

2009-08-26 Thread Jim Rising
no. i want both true and false (all records independent of the boolean field). preferably, when i am not populating setLoginRequired() myself... i would rather it not include it in the where clause. -jim On Aug 26, 3:35 pm, Mark Mandel wrote: > I'm so confused still... so you want a list of a

[transfer-dev] Re: manytoone duplicate column on insert

2009-08-26 Thread Mark Mandel
You can't use a foreign key as a property and in a relationship at the same time. Please see the documentation. http://docs.transfer-orm.com/wiki/Transfer_Configuration_File.cfm#manytoone Mark On Thu, Aug 27, 2009 at 6:51 AM, Jim Rising wrote: > *the relevant portion of my transfer config:* >

[transfer-dev] Re: manytoone duplicate column on insert

2009-08-26 Thread Jim Rising
just so everyone is aware, I'm trying to do this on a linking table. -- Jim Rising Serial Entrepreneur Software Engineer Web Developer "Knowledge work requires both autonomy and accountability." On Wed, Aug 26, 2009 at 4:00 PM, Bob Silverberg wrote: > > Looks like this is your issue: > > > htt

[transfer-dev] Re: handling boolean values

2009-08-26 Thread Mark Mandel
I'm so confused still... so you want a list of all records that are false... but not the ones that are false? Huh? Mark On Thu, Aug 27, 2009 at 1:08 AM, Jim Rising wrote: > The only workaround that i've found for this is to set all of my boolean > fields to varchar. if i do this and the request

[transfer-dev] Re: manytoone duplicate column on insert

2009-08-26 Thread Bob Silverberg
Looks like this is your issue: http://docs.transfer-orm.com/wiki/Repeated_field_names_in_the_select_list.cfm Cheers, Bob On Wed, Aug 26, 2009 at 4:51 PM, Jim Rising wrote: > the relevant portion of my transfer config: > >         >             decorator="workspace.svn_fiduciaryEdge.trunk.mode

[transfer-dev] manytoone duplicate column on insert

2009-08-26 Thread Jim Rising
*the relevant portion of my transfer config:* *My manager save():* The e

[transfer-dev] Re: handling boolean values

2009-08-26 Thread Jim Rising
The only workaround that i've found for this is to set all of my boolean fields to varchar. if i do this and the request does not contain loginRequired, it does not seem to be included in transfer's where clause, thereby returning all of the true and all of the false records. -- Jim Rising Serial

[transfer-dev] Re: handling boolean values

2009-08-26 Thread Jim Rising
it seems that even if i do not pass my loginRequired in as part of the request, it still finds it's way into transfer's where clause with the default of 'false': 'select name, description, loginRequired, apiEventID from apievents where loginRequired = false' the problem seems to be that because a

[transfer-dev] Re: How do you retrieve an object which has a compositeId instead of an Id?

2009-08-26 Thread Mark Mandel
http://docs.transfer-orm.com/wiki/Using_Composite_Keys.cfm#Object_Retrieval For future reference. Mark On Wed, Aug 26, 2009 at 7:57 PM, Matthew wrote: > > Don't worry, I've answered it myself by trial and error. > ANSWER: You need to pass in a structure with keys matching the > composite key n

[transfer-dev] Re: How do you retrieve an object which has a compositeId instead of an Id?

2009-08-26 Thread Matthew
Don't worry, I've answered it myself by trial and error. ANSWER: You need to pass in a structure with keys matching the composite key names. On Aug 26, 7:18 pm, Matthew wrote: > How do you retrieve an object which has a compositeId instead of an Id? --~--~-~--~~~---~-

[transfer-dev] How do you retrieve an object which has a compositeId instead of an Id?

2009-08-26 Thread Matthew
How do you retrieve an object which has a compositeId instead of an Id? --~--~-~--~~~---~--~~ Before posting questions to the group please read: http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer You received this message becau