Re: generate sql from entity modeler in Eclipse
Re: generate sql from entity modeler in Eclipse
- Subject: Re: generate sql from entity modeler in Eclipse
- From: Mike Schrag <email@hidden>
- Date: Sun, 18 Nov 2007 22:22:24 -0500
I'd have to take a closer look at that, but what I don't understand
from your example: if in both cases the table name is not quoted, it
should not be a problem as the conversion to lowercase happens in
both cases. I'm not using pk generation but I'm pretty sure that it
would work if either both cases or none is quoted.
I agree, btw -- For PG, it's recommended that you DON'T quote these
names, because it will then become case sensitive, which is almost
always undesirable.
com
.webobjects.jdbcadaptor.PostgresqlExpression.enableIdentifierQuoting
= true
and have the quoting available during application runtime.
Nevertheless that shouldn't matter for the example sql you gave.
/**
* Declare a class named
"org.objectstyle.wolips.eomodeler.EOModelProcessor"
* with the following methods: public void processModel(EOModel _model,
* NSMutableArray _entities, NSMutableDictionary _flags); public void
* processSQL(StringBuffer _sqlBuffer, EOModel _model, NSMutableArray
_entities,
* NSMutableDictionary _flags);
*
* processModel will be called prior to sql generation, and
processSQL will be
* called after sql generation but before it retuns to EOModeler.
*
* @author mschrag
*
*/
In processModel, you could set the system property, I suspect ...
ms
_______________________________________________
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