Re: Need Help on EOModel Auto update of DATE column for DirectToWeb app
"Pierre Gilquin" <[email protected]> Mon, 9 Nov 2009 09:52:14 +0100
| Newsgroups | gmane.comp.web.webobjects.devel |
|---|---|
| Message-ID | <[email protected]> |
You can use trigger in the database or with EOF, you can implement validateForInsert() and validateForUpdate() in the Java class of your entity ----- Original Message ----- From: BLS To: [email protected] Sent: Monday, November 09, 2009 9:23 AM Subject: Need Help on EOModel Auto update of DATE column for DirectToWeb app I have a DirectToWeb application (with EOModels), where in I have a table with create_date and modify_date columns. I need the create_date and modify_date of the table to be automatically updated, whenever the user tries to create a new record for the table or, when the user tries to edit an existing record of the table. Any idea how to achieve this? Any hints will be very helpful.. Thanks a lot in advance, BLS -- View this message in context: http://old.nabble.com/Need-Help-on-EOModel-Auto-update-of-DATE-column-for-DirectToWeb-app-tp26261738p26261738.html Sent from the WebObjects-Dev mailing list archive at Nabble.com. _______________________________________________ WebObjects-dev mailing list [email protected] http://www.omnigroup.com/mailman/listinfo/webobjects-dev _______________________________________________ WebObjects-dev mailing list [email protected] http://www.omnigroup.com/mailman/listinfo/webobjects-dev