Re: problem Importing eomodel in cayenne modeler.

From: Charles-Edouard Ruault (c..dtect.com)
Date: Fri Feb 14 2003 - 12:16:27 EST

  • Next message: Dave Paules: "Advanced SQL: Datatype conversions"

    Hi Andrus,
    thanks for the prompt reply !

    Andrus Adamchik wrote:

    >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.
    >
    >
    I'll do that for sure ... i'm not 100% familiar with EOModel but i'll
    figure it out ! thanks for the tip.

    >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.
    >
    >
    Perfect. Or at least there should be a visible error reported to the
    user. It took me a while to figure out why nothing was happening when i
    was using the import feature :-)

    >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?
    >
    >
    Saving would be great . Is there any plan to add the feature ?

    >Andrus
    >
    >
    Thanks again !

    >
    >
    >
    >
    >>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
    >>
    >>
    >
    >
    >
    >
    >

    -- 
    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:19:02 EST