Re: Problem EOEditingContext

2012-07-13 Thread Theodore Petrosky
> -- > > Message: 7 > Date: Fri, 13 Jul 2012 09:52:40 -0700 > From: Ramsey Gurley > To: Maik Musall > Cc: WebObjects Development > Subject: Re: Problem EOEditingContext > Message-ID: > Content-Type: text/plain; charset=us-ascii >

Re: Problem EOEditingContext

2012-07-13 Thread Ramsey Gurley
On Jul 13, 2012, at 2:23 AM, Maik Musall wrote: > > Am 13.07.2012 um 01:20 schrieb Ramsey Gurley: > >> >> On Jul 12, 2012, at 3:26 PM, Maik Musall wrote: >> >>> >>> Am 12.07.2012 um 23:58 schrieb Louis Demers: User newUser = (User)EOUtilities.createAndInsertInstance(ec, User.ENTIT

Re: Problem EOEditingContext

2012-07-13 Thread Cheong Hee (Gmail)
newUser(ec) or User(ec). - Original Message - From: "Maik Musall" To: "WebObjects Development" Sent: Friday, July 13, 2012 5:23 PM Subject: Re: Problem EOEditingContext Am 13.07.2012 um 01:20 schrieb Ramsey Gurley: On Jul 12, 2012, at 3:26 PM, Maik Musall wro

Re: Problem EOEditingContext

2012-07-13 Thread Maik Musall
Am 13.07.2012 um 01:20 schrieb Ramsey Gurley: > > On Jul 12, 2012, at 3:26 PM, Maik Musall wrote: > >> >> Am 12.07.2012 um 23:58 schrieb Louis Demers: >>> User newUser = (User)EOUtilities.createAndInsertInstance(ec, >>> User.ENTITY_NAME) ; >> >> Much too wordy for my taste, and needs a cast

Re: Problem EOEditingContext

2012-07-12 Thread David Holt
On 2012-07-12, at 3:49 PM, Hugo Cambero wrote: > Thanks for your answers, yes I found a method like this: > > public static User createUser(EOEditingContext editingContext, String > maternalName > , String name > , String password > , String paternalName > , String username) Any attributes in

Re: Problem EOEditingContext

2012-07-12 Thread Ramsey Gurley
On Jul 12, 2012, at 3:26 PM, Maik Musall wrote: > > Am 12.07.2012 um 23:58 schrieb Louis Demers: >> User newUser = (User)EOUtilities.createAndInsertInstance(ec, >> User.ENTITY_NAME) ; > > Much too wordy for my taste, and needs a cast on top of it. Just add a second > constructor in your templ

Re: Problem EOEditingContext

2012-07-12 Thread Hugo Cambero
Thanks for your answers, yes I found a method like this: public static User createUser(EOEditingContext editingContext, String maternalName , String name , String password , String paternalName , String username) But I prefer to user the method like this: User newUser = ERXEOControlUtilities.crea

Re: Problem EOEditingContext

2012-07-12 Thread Lon Varscsak
Oh, I like that! -Lon On Thu, Jul 12, 2012 at 3:26 PM, Maik Musall wrote: > > Am 12.07.2012 um 23:58 schrieb Louis Demers: >> User newUser = (User)EOUtilities.createAndInsertInstance(ec, >> User.ENTITY_NAME) ; > > Much too wordy for my taste, and needs a cast on top of it. Just add a second >

Re: Problem EOEditingContext

2012-07-12 Thread David Holt
Hola Hugo, Bienvenido! If you are using the EOGenerate templates for your EO classes you'll also find this code is generated for you. For example in my _Person.java class: public static com.wowodc.model.Person createPerson(EOEditingContext editingContext) { com.wowodc.model.Person eo = (

Re: Problem EOEditingContext

2012-07-12 Thread Maik Musall
Am 12.07.2012 um 23:58 schrieb Louis Demers: > User newUser = (User)EOUtilities.createAndInsertInstance(ec, > User.ENTITY_NAME) ; Much too wordy for my taste, and needs a cast on top of it. Just add a second constructor in your template which does ec.insertObject(this), so that you can simply

Re: Problem EOEditingContext

2012-07-12 Thread Louis Demers
On 2012-07-12, at 2:46 PM, Hugo Cambero wrote: > Hi Everybody > > My name is Hugo, I'm from Mexico. I have been developing using WebObjects and > Wonder Frameworks, I'm newbie in this topic. > > Well, I have a problem, I hope you can help me. I'm developing a test > application, I want to lea

Re: Problem EOEditingContext

2012-07-12 Thread Hugo Cambero
Thanks for your recommendation Johann Wernet Yes, you are right, I have a problem with my model, I'll change it, and I'll seek about ERXEOControlUtilities Regards On Thu, Jul 12, 2012 at 1:56 PM, Johann Werner wrote: > Hi Hugo, > > welcome to WO! > > Am 12.07.2012 um 20:46 schrieb Hugo Cambero

Re: Problem EOEditingContext

2012-07-12 Thread Johann Werner
Hi Hugo, welcome to WO! Am 12.07.2012 um 20:46 schrieb Hugo Cambero: > Hi Everybody > > My name is Hugo, I'm from Mexico. I have been developing using WebObjects and > Wonder Frameworks, I'm newbie in this topic. > > Well, I have a problem, I hope you can help me. I'm developing a test > app

Re: Problem EOEditingContext

2012-07-12 Thread Chuck Hill
¡Hola Hugo! On 2012-07-12, at 11:46 AM, Hugo Cambero wrote: > Hi Everybody > > My name is Hugo, I'm from Mexico. I have been developing using WebObjects and > Wonder Frameworks, I'm newbie in this topic. Welcome! > Well, I have a problem, I hope you can help me. I'm developing a test > app