Re: Serialize shopping cart

2019-07-29 Thread Jérémy DE ROYER via Webobjects-dev
Hi Gino, We do store shopping carts using serialization/json/xml to files and restore them when the user is back. We just need an item id and quantity. We store it : a) in a file using a uuid (saved in a cookie for non logged in users) b) in a file using the customer profile for logged in user

Re: One to many not nullifying when reverse is not marked for in-class generation

2019-07-29 Thread René Bock via Webobjects-dev
Hi, or, if you use MySQL (or horizontal Inheritance ), you may override the willDelete method. eg: public void willDelete() throws NSValidation.ValidationException { super.willDelete(); NSArray targets = Target.fetchTargets(editingContext(), Target.TOONE.eq(this), null); for(Target t:targets)