Jim, I'm trying to follow you here...

On Wed, Aug 26, 2009 at 6:41 AM, Jim Rising <[email protected]> wrote:

> just curious if anyone has ever run into any issues with transfer creating
> default values for boolean?


Transfer default boolean values to false, yes. You can override this in a
configure() method.


> what i'm doing, is building a transfer object out of an event into a
> coldbox handler called 'apiEvent.getByAttributes', and then passing these
> into a manager i've built called 'apiEvent.getByAttributes'... one of the
> properties is 'loginRequired', which in mySQL is a tinyInt, and in my
> transfer config is a boolean. when i instatiate the apiEvent transfer object
> out of the event scope data (request), and there is no
> event.getValue("loginRequired"), the getLoginRequired() from transfer
> defaults to 'false'.


Is this a problem? What would you like it to default to (in your application
context)?


> the problem that i am trying to resolve is simply that i would like to
> retrieve via listByPropertyMap (in the manager) a list of ALL of my
> apiEvents (irrespective of loginRequired) but also still be able to retrieve
> apiEvents with loginRequired explicitly declared true or false. it seems
> that i can only retrieve true or false, but not both because transfer
> defaults to false. i get why it's doing it, and i've worked around it with
> other field types... but have not figured out a way to deal with boolean.


This is where you lose me. Maybe if you provide an example of what you are
trying to do?

Mark

-- 
E: [email protected]
T: http://www.twitter.com/neurotic
W: www.compoundtheory.com

--~--~---------~--~----~------------~-------~--~----~
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 because you are subscribed to the Google Groups 
"transfer-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to