Re: Tip request: How to avoid coercing twice in NSValidation

2017-05-25 Thread Ray Kiddy
Useful to keep in mind. https://www.owasp.org/index.php/Password_Storage_Cheat_Sheet On 5/23/17 7:26 AM, Morris, Mark wrote: I know this is off topic, but I would recommend BCrypt for your passwords. It has 3 features that make it better than simply hashing your passwords: 1. It uses a

Re: Save order of EO objects to support database foreign key constraints.

2017-05-25 Thread Steve Peery
One property: com.webobjects.eoaccess.ERXEntityDependencyOrderingDelegate.active = true took care of it. WOnderful! Steve > On May 25, 2017, at 12:15 PM, Chuck Hill wrote: > > That is in Wonder now, IIRC. > > The other thing to do, if you database supports it, is to

Re: Save order of EO objects to support database foreign key constraints.

2017-05-25 Thread Chuck Hill
That is in Wonder now, IIRC. The other thing to do, if you database supports it, is to mark the constraints as DEFERRABLE INITIALLY DEFERRED. The delegate was intended to handle the cases where the database did not support that. Chuck From: Webobjects-dev

Re: Save order of EO objects to support database foreign key constraints.

2017-05-25 Thread Aaron Rosenzweig
Hi Steve, You can make a delegate to handle the ordering of database operations. Chuck Hill made one that might just work for you but if you need something additionally custom you’ll have to take over. https://lists.apple.com/archives/webobjects-dev/2007/Jun/msg00751.html

Save order of EO objects to support database foreign key constraints.

2017-05-25 Thread Steve Peery
Hey List, I am importing a bunch of relational data into a project and when I try to save changes I get an error something like this: Error when attempting to save data: EvaluateExpression failed: : Next exception:SQL State:23000 -- error code: 1452 -- msg: Cannot add or update a child row: a