Re: EOF-Modeling-Prototypes
Re: EOF-Modeling-Prototypes
- Subject: Re: EOF-Modeling-Prototypes
- From: Chuck Hill <email@hidden>
- Date: Wed, 22 Jul 2009 15:14:05 -0700
On Jul 22, 2009, at 3:10 PM, Mike Schrag wrote:
don't those both still have external types? flattened would inherit
from the last element of the path and derived, you'd still have to
tell it its type ....... right? or do you just have to set
valueType/valueClass on it.... that probably makes more sense.
I am lazily avoiding trying it out :-P but my recollection is that
both have only the valueType/class set. Flattened is internal to EOF,
so no need for an external type for the database. For derived, the
database would infer the type based on the expression. In fact...
are the external types used at all other than for initial table
creation?
Chuck
On Jul 22, 2009, at 6:08 PM, Chuck Hill wrote:
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
--
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