Problems generating SQL

From: Miguel Arroz (arro..uiamac.com)
Date: Wed May 23 2007 - 12:41:50 EDT

  • Next message: Chuck Hill: "Re: Problems generating SQL"

    Hi!

       I'm trying the WOLips EOModeler replacement. When I try to
    generate SQL, I get this error:

    java.lang.ClassCastException: java.lang.Integer
            at
    com.webobjects.jdbcadaptor.JDBCExpression.columnTypeStringForAttribute
    (JDBCExpression.java:293)
            at
    com.webobjects.jdbcadaptor.PostgresqlExpression.columnTypeStringForAttri
    bute(PostgresqlExpression.java:371)
            at
    com.webobjects.eoaccess.EOSQLExpression.addCreateClauseForAttribute
    (EOSQLExpression.java:2498)
            at
    com.webobjects.eoaccess.EOSynchronizationFactory.createTableStatementsFo
    rEntityGroup(EOSynchronizationFactory.java:318)
            at
    com.webobjects.eoaccess.EOSynchronizationFactory.createTableStatementsFo
    rEntityGroups(EOSynchronizationFactory.java:487)
            at
    com.webobjects.eoaccess.EOSynchronizationFactory.schemaCreationStatement
    sForEntities(EOSynchronizationFactory.java:951)
            at
    com.webobjects.eoaccess.EOSynchronizationFactory.schemaCreationScriptFor
    Entities(EOSynchronizationFactory.java:747)
            at
    org.objectstyle.wolips.eomodeler.sql.EOFSQLGenerator.getSchemaCreationSc
    ript(EOFSQLGenerator.java:391)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke
    (NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke
    (DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at
    org.objectstyle.wolips.eomodeler.actions.GenerateSQLDialog.generateSql
    (Unknown Source)
            at org.objectstyle.wolips.eomodeler.actions.GenerateSQLDialog$1.run
    (Unknown Source)
            at java.lang.Thread.run(Thread.java:613)

       Any ideas?

       Yours

    Miguel Arroz

    Miguel Arroz
    http://www.terminalapp.net
    http://www.ipragma.com



    This archive was generated by hypermail 2.0.0 : Wed May 23 2007 - 12:43:09 EDT