• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: EOF-Modeling-Prototypes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EOF-Modeling-Prototypes


  • Subject: Re: EOF-Modeling-Prototypes
  • From: Chuck Hill <email@hidden>
  • Date: Wed, 22 Jul 2009 15:08:11 -0700


On Jul 22, 2009, at 2:52 PM, Mike Schrag wrote:

Do I not validate this case? WHen you saved or ran a Check Model, did it tell you this or just let you fail silently? Is there any case that you can have an attribute without an external type? Maybe restricted to checking models that use JDBC, at least?

Derived attributes? Flattened attributes?


Chuck



On Jul 22, 2009, at 5:49 PM, Miguel Angel Torres Avila wrote:

Ohh Sorry, I found the error.

I had an attribute in my entity without the External Type definition.

Now, I just have the original question, how can I extend the prototypes provided for Wonder?

On Jul 22, 2009, at 4:43 PM, Miguel Angel Torres Avila wrote:

Hi list,

I am trying to use prototypes in my EOModel.

By default I can use the prototypes provided by Wonder via the ERPrototypes Framework. But I want to extend them, I want to add two more prototypes.

How can I do that?

Y tried creating an Entity named EOJDBCMyPostgresqlPrototypes, and selecting it on my Database Config, that way I could select prototypes from the Original EOJDBCPostgresqlPrototypes and from mine. But When I tried to generate SQL using the Generate SQL button I received the following exception:

java.lang.RuntimeException: Failed to generate SQL.
at org.objectstyle.wolips.eomodeler.core.sql.EOFSQLGeneratorFactory $ ReflectionSQLGenerator .generateSchemaCreationScript(EOFSQLGeneratorFactory.java:60)
at org .objectstyle .wolips .eomodeler .actions.GenerateSQLDialog.generateSql(GenerateSQLDialog.java:298)
at org.objectstyle.wolips.eomodeler.actions.GenerateSQLDialog $1.run(GenerateSQLDialog.java:279)
at java.lang.Thread.run(Thread.java:613)
Caused by: java.lang.reflect.InvocationTargetException
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.core.sql.EOFSQLGeneratorFactory $ ReflectionSQLGenerator .generateSchemaCreationScript(EOFSQLGeneratorFactory.java:58)
... 3 more
Caused by: java.lang.NullPointerException
at com .webobjects .jdbcadaptor .JDBCExpression.columnTypeStringForAttribute(JDBCExpression.java: 286)
at com .webobjects .eoaccess .EOSQLExpression.addCreateClauseForAttribute(EOSQLExpression.java: 2498)
at com .webobjects .eoaccess .EOSynchronizationFactory .createTableStatementsForEntityGroup(EOSynchronizationFactory.java: 318)
at com .webobjects .eoaccess .EOSynchronizationFactory .createTableStatementsForEntityGroups (EOSynchronizationFactory.java:487)
at com .webobjects .eoaccess .EOSynchronizationFactory .schemaCreationStatementsForEntities(EOSynchronizationFactory.java: 951)
at com .webobjects .eoaccess .EOSynchronizationFactory .schemaCreationScriptForEntities(EOSynchronizationFactory.java:747)
at org .objectstyle .wolips .eomodeler .core .sql .EOFSQLGenerator.generateSchemaCreationScript(EOFSQLGenerator.java: 483)
... 8 more



I thought maybe I was wrong mixing prototypes, so I removed the ERPrototypes Framework from my project, renamed my entity to EOJDBCPostgresqlPrototypes and I created the prototypes I needed.
But the same exception appears once I try to generate SQL.


If I rename my entity that defines the prototypes, add the ERPrototypes Framework and use just prototypes defined there I can generate the sql without any problems.

Does anyone have a clue how to solve this?

Thanks in advanced.







_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden





_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden

-- Chuck Hill Senior Consultant / VP Development

Learn WO at WOWODC'09 East in Montréal this August!
http://www.wocommunity.org/wowodc09/east

http://arstechnica.com/apple/news/2009/07/webobjects-sliced-from-106but-prognosis-of-death-premature.ars

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: EOF-Modeling-Prototypes
      • From: Mike Schrag <email@hidden>
References: 
 >EOF-Modeling-Prototypes (From: Miguel Angel Torres Avila <email@hidden>)
 >Re: EOF-Modeling-Prototypes (From: Miguel Angel Torres Avila <email@hidden>)
 >Re: EOF-Modeling-Prototypes (From: Mike Schrag <email@hidden>)

  • Prev by Date: Re: EOF-Modeling-Prototypes
  • Next by Date: Re: EOF-Modeling-Prototypes
  • Previous by thread: Re: EOF-Modeling-Prototypes
  • Next by thread: Re: EOF-Modeling-Prototypes
  • Index(es):
    • Date
    • Thread