Re: EOModel doesn't see value type

From: Johann Werner (werne..sd.uni-stuttgart.de)
Date: Wed Aug 29 2007 - 11:53:34 EDT

  • Next message: Mike Schrag: "Re: EOModel doesn't see value type"

    Ok, I found a solution to my problem already. In Entity Modeler I had
    "Decimal Number - BigDecimal" set as data type. Now I changed it to
    "Big Decimal - BigDecimal B" and it works. It added the line

    valueType = B;

    to the attribute description. But what purpose does the former value
    type "Decimal Number" have if it doesn't work?

    jw

    Am 29.08.2007 um 17:18 schrieb Johann Werner:

    > Hi list,
    >
    > I am using WOLips 2.0.0.4118 and experience some strange errors
    > with my eomodel. I have a prototype eomodel where I define
    >
    > {
    > allowsNull = Y;
    > columnName = "";
    > externalType = NUMERIC;
    > name = float_s;
    > precision = 6;
    > scale = 2;
    > valueClassName = NSDecimalNumber;
    > }
    >
    > In my main eomodel I have an attribute that uses that prototype
    > attribute. In Entity Modeler everything seems fine and looking into
    > the corresponding text file reveals nothing wrong:
    >
    > attributes =
    > (
    > ...
    >
    > {
    > allowsNull = N;
    > columnName = workLoadCoeff;
    > name = workLoadCoeff;
    > prototypeName = float_s;
    > }
    > );
    > classProperties =
    > (
    > ...,
    > workLoadCoeff
    > );
    >
    >
    > But when I run my app I get the following line in the console window:
    >
    > DEBUG NSLog - value type ' ' on attribute "workLoadCoeff" of
    > entity "MainPreferences" is invalid.
    > You should fix your EOModel.
    >
    >
    > Has anyone seen this error? How can I fix it as all the eomodel-
    > files seem correct? Strangely all other attributes in that entity
    > are ok though they use prototypes too.
    >
    > jw





    This archive was generated by hypermail 2.0.0 : Wed Aug 29 2007 - 11:55:45 EDT