Re: booleans and postgresql
Re: booleans and postgresql
- Subject: Re: booleans and postgresql
- From: "Daniele Corti" <email@hidden>
- Date: Tue, 8 Jan 2008 16:22:57 +0100
2008/1/8, Theodore Petrosky <email@hidden>:
A while ago while working in in XCode (2.4.1) i was
able to map my booleans from my postgresql backend
like this:
{
adaptorValueConversionMethodName =
toString;
allowsNull = Y;
columnName = isactive;
externalType = varchar;
factoryMethodArgumentType =
EOFactoryMethodArgumentIsNSString;
name = isactive;
valueClassName = Boolean;
valueFactoryMethodName = "valueOf:";
width = 5;
},
this worked fine..... (maybe there is a better way but
for my needs it was fine.)
when I try to do this in eclipse (WO
5.4) I get this
error:
Error: java.lang.reflect.InvocationTargetException
Reason: java.lang.NoSuchMethodException: Class
java.lang.Boolean does not implement method valueOf
Is there an example out there somewhere that shows a
good way to use these boolean values from my
postgresql backend.
Ted
Hi,
look if you use ERPrototypes.framework of project wonder, you have some example in witch way you can handle this things.
Using EntityModeler , click on your entity and select as parent, in the Properties panel, EOJDBCPostgresqlPrototypes, then save the model. You will see in the entity report, some abstract fields. then select the one named "boolean" and you will see the example.
Sorry if I'm not really clear, if you have problems, feel free to ask!
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
--
Daniele Corti
AIM: S0CR4TE5
Messenger:
email@hidden--
Computers are like air conditioners -- they stop working properly if you open
WINDOWS
--
What about the four lusers of the apocalypse? I nominate:
"advertising", "can't log in", "power switch" and "what backup?"
--Alistair Young
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden