New Enterprise-Object of old one
"Peter Müller" <[email protected]> Thu, 12 May 2011 20:35:33 +0200
| Newsgroups | gmane.comp.web.webobjects.woproject.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello WO-Checkers, is there an easy way to make a copy on Enterprise-Object and save this as a "new" Enterprise-Object? Because the only solution I found is this: ------- User u = new User(); session.defaultEditingContext().insertObject(u); u.setLastname(old.lastname()); u.setFirstname(old.firstname()); ... ... ... session.defaultEditingContext().saveChanges(); ------- And this solution is every else than a good solution :) Thank you a lot Peter M. -- NEU: FreePhone - kostenlos mobil telefonieren und surfen! Jetzt informieren: http://www.gmx.net/de/go/freephone