Re: SQL Generation

From: Chuck Hill (chil..lobal-village.net)
Date: Wed May 02 2007 - 16:58:20 EDT

  • Next message: Kieran Kelleher: "Entity Modeler ... how to edit external width, scale, precision?"

    Bad jdbc2info in the model can do this. Have you changed the DB or
    JDCB driver too? Is the jdbc2info in the model corrupted? Is there
    some different external type for these attributes?

    Chuck

    On May 2, 2007, at 1:49 PM, Kieran Kelleher wrote:

    > I set up a new entity in a model that was previously maintained by
    > EOModeler.
    >
    > When trying the generate SQL for the new Entity, I get this error:
    > java.lang.ClassCastException: java.lang.Integer
    > at
    > com.webobjects.jdbcadaptor.JDBCExpression.columnTypeStringForAttribute
    > (JDBCExpression.java:293)
    > at
    > com.webobjects.eoaccess.EOSQLExpression.addCreateClauseForAttribute
    > (EOSQLExpression.java:2498)
    > at
    > com.webobjects.eoaccess.EOSynchronizationFactory.createTableStatements
    > ForEntityGroup(EOSynchronizationFactory.java:318)
    > at
    > com.webobjects.eoaccess.EOSynchronizationFactory.createTableStatements
    > ForEntityGroups(EOSynchronizationFactory.java:487)
    > at
    > com.webobjects.eoaccess.EOSynchronizationFactory.schemaCreationStateme
    > ntsForEntities(EOSynchronizationFactory.java:951)
    > at
    > com.webobjects.eoaccess.EOSynchronizationFactory.schemaCreationScriptF
    > orEntities(EOSynchronizationFactory.java:747)
    > at
    > org.objectstyle.wolips.eomodeler.sql.EOFSQLGenerator.getSchemaCreation
    > Script(EOFSQLGenerator.java:389)
    > 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)
    >
    >
    > The setup is:
    > WOLips and Wonder of today.
    > All frameworks are "linked" in from workspace and also exist in /
    > Library/Frameworks
    > I am using my own prototypes. ERPrototypes framework is not
    > referenced by the project at all.
    >
    > I'll go get this done by hand right now since it is just a half-
    > dozen attributes in the new entity, but any ideas on what this
    > problem is?

    -- 
    

    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



    This archive was generated by hypermail 2.0.0 : Wed May 02 2007 - 16:58:16 EDT