Re: stored procedures (reverse engineered)
Re: stored procedures (reverse engineered)
- Subject: Re: stored procedures (reverse engineered)
- From: Chuck Hill <email@hidden>
- Date: Mon, 4 Feb 2008 10:51:00 -0800
On Feb 2, 2008, at 11:00 PM, Theodore Petrosky wrote:
I have a simple postgresql setup with one trigger that
fires a stored function. I would like my webobjects
app to know about this procedure. (Or maybe I
don't...).
Basically if I insert a new person name, I fires a
procedure that inserts a row into a meta data table
and sets the reference back to the id of the new row.
I created the db and tables and trigger and stored
function then created a new WOLips project to see what
would happen if I reversed engineered the db. I was
able to reverse the tables and references between them
but nothing about the stored procedure.
I am trying to think if I should even care.
No suggestions on that.
On another note... Is there a way to specify a default
value for a column when creating a table from
eogenerator?
I think you could add a key like "defaultValue" in the user info for
each attribute:
defaultValue = "new Integer(0)";
And then have your template implement awakeFromInsertion, iterate
over the attributes and add set calls for the ones with default values:
set<attributeName>(<attribute.userInfo.defaultValue>);
Hmmm, I like that!
Chuck
--
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
_______________________________________________
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