Re: Problems generating SQL

From: Miguel Arroz (arro..uiamac.com)
Date: Wed May 23 2007 - 13:03:19 EDT

  • Next message: John Huss: "Re: Problems generating SQL"

    Hi!

       PostgreSQL.

       Yours

    Miguel Arroz

    On 2007/05/23, at 17:54, Chuck Hill wrote:

    > I think we have seen that recently. Search the archived for
    > "columnTypeStringForAttribute". Which database?
    >
    > Chuck
    >
    > On May 23, 2007, at 9:41 AM, Miguel Arroz wrote:
    >
    >> 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.columnTypeStringForAttribut
    >> e(JDBCExpression.java:293)
    >> at
    >> com.webobjects.jdbcadaptor.PostgresqlExpression.columnTypeStringForAt
    >> tribute(PostgresqlExpression.java:371)
    >> at
    >> com.webobjects.eoaccess.EOSQLExpression.addCreateClauseForAttribute
    >> (EOSQLExpression.java:2498)
    >> at
    >> com.webobjects.eoaccess.EOSynchronizationFactory.createTableStatement
    >> sForEntityGroup(EOSynchronizationFactory.java:318)
    >> at
    >> com.webobjects.eoaccess.EOSynchronizationFactory.createTableStatement
    >> sForEntityGroups(EOSynchronizationFactory.java:487)
    >> at
    >> com.webobjects.eoaccess.EOSynchronizationFactory.schemaCreationStatem
    >> entsForEntities(EOSynchronizationFactory.java:951)
    >> at
    >> com.webobjects.eoaccess.EOSynchronizationFactory.schemaCreationScript
    >> ForEntities(EOSynchronizationFactory.java:747)
    >> at
    >> org.objectstyle.wolips.eomodeler.sql.EOFSQLGenerator.getSchemaCreatio
    >> nScript(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.generateSq
    >> l(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
    >>
    >>
    >>
    >>
    >
    > --
    >
    > Practical WebObjects - for developers who want to increase their
    > overall knowledge of WebObjects or who are trying to solve specific
    > problems.
    > http://www.global-village.net/products/practical_webobjects
    >
    >
    >
    >
    >

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



    This archive was generated by hypermail 2.0.0 : Wed May 23 2007 - 13:04:28 EDT