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 protected]<mailto:[email protected]>> 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/> 
http://www.wocommunity.org/wowodc11/

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      
([email protected]<mailto:[email protected]>)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/mgargano%40me.com

This email sent to <mailto:[email protected]> 
[email protected]<mailto:[email protected]>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      
([email protected]<mailto:[email protected]>)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com

This email sent to [email protected]<mailto:[email protected]>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to