Re: problem Importing eomodel in cayenne modeler.

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Fri Feb 14 2003 - 12:09:06 EST

  • Next message: Charles-Edouard Ruault: "Re: problem Importing eomodel in cayenne modeler."

    Hi Charles,

    Not sure why "valueClassName" is null. But I remember EOModeler saving
    EOAttributes without the database type and not giving any warning. Maybe
    the same happens for Java class? You should probably manually doublecheck
    the EOModel and see that all attribute properties are set.

    In the meantime I will file a bug in Cayenne, and will add a fix that
    would create an (invalid) Cayenne attribute in such case, instead of
    blowing with NPE. Hopefully I can do it this weekend.

    BTW, CayenneModeler can only read EOModels, but can't save the changes
    them in EOModel format, only in cayenne format (though saving is probably
    easy to add). Is reading enough for what you are doing?

    Andrus

    > Hi All,
    >
    > i'm trying to develop webobject apps on linux, using wolips and eclipse.
    > Since there's no support for eomodeler on Linux, i looked for
    > alternatives and found cayenne modeler ( 1.0a6 ) which is supposed to be
    > able to read eomodel files.
    > However , when i try to import my existing eomodel file, i'm getting a
    > null pointer exception and nothing gets created.
    > I've done a little bit of debugging and found out the following :
    > in org.objectstyle.cayenne.wocompat.EOModelProcessor in the method
    > makeAttributes i'm getting a null value as return of
    > attrMap.get("valueClassName");
    > which causes a crash the following line :
    > EOModelHelper.javaTypeForEOModelerType(attrType);
    > because javaTypeForEOModelerType does not check for null args.
    >
    > The question i have is :
    > - is it possible to get a null value for "valueClassName" attribute ? If
    > so then what should javaTypeForEOModelerType return instead of crashing
    > ?
    >
    > Does anyone else encountered this problem ? Is there any known solution
    > ? Thanks for your help.
    >
    > --
    > Charles-Edouard Ruault
    > Idtect SA
    > http://www.idtect.com
    > +33-1-42-81-81-84



    This archive was generated by hypermail 2.0.0 : Fri Feb 14 2003 - 12:09:07 EST