I'm assuming my entity also needs a class override of ERCStampedEnterpriseObject.
Thanks. -Mike On Jun 28, 2011, at 2:42 PM, Ramsey Gurley wrote: Are you referring to the audit trails? That's pretty easy to use. Just include your list of ERXAuditKeys in the userInfo dictionary for the Entity and it handles the rest. If you include the ERXAuditKeys key with an empty value, it will log all your attributes by default. Also, the existing audit trail handler doesn't support flattened relationships (many-to-many's) so well, but you can provide your own audit trail handler subclass via a property if you need that.
If you want to track "who" makes changes, you'll also need to set up an actor entity. Otherwise, you just track changes. Most everything you need to know happens in ERCAuditTrailHandler.java.
Ramsey On Jun 28, 2011, at 11:14 AM, Michael Gargano wrote: huh, cool. i did not know that. thanks.
-mike
On Jun 28, 2011, at 2:06 PM, Chuck Hill < email@hidden> wrote: On Jun 28, 2011, at 10:58 AM, Michael Gargano wrote: Hi all,
It seems that all the cool kids are using ERCoreBusinessLogic, but I can't find a lick of documentation on it.
Cool kids don't write documentation, they write code. ;-)
I guess I only know the secret handshake, not the super-secret handshake. :)
From poking around, I know that it logs and sends e-mails based on EO changes, but I wanted to know if it can be used to just log solely to the DB. Anything out there on setting this up? Should I check in the necronomicon perhaps? :)
No idea, but log4j can log to a database.
Chuck and going to back to the library
-- Chuck Hill Senior Consultant / VP Development
Come to WOWODC this July for unparalleled WO learning opportunities and real peer to peer problem solving! Network, socialize, and enjoy a great cosmopolitan city. See you there! http://www.wocommunity.org/wowodc11/
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
|