• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Is it bad to put Objects in EO derived classes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is it bad to put Objects in EO derived classes


  • Subject: Re: Is it bad to put Objects in EO derived classes
  • From: Paul Lynch <email@hidden>
  • Date: Tue, 31 Oct 2006 21:48:53 +0000


On 31 Oct 2006, at 21:26, Baiss Eric Magnusson wrote:

I'm assuming you're using EOGenerator and generating 2 different class files, right? That's really the best way to do it, then you add your variables in the non underscore class. I do this all the time.


No I don't use EOGenerator and generate 2 different class files, is there any more on that, examples, etc.

You don't need EOGenerator to do this, I have done it by hand since before EOGenerator.


Step 1: use EOModeler to create a java file as as YourClass.java
Step 2: edit YourClass.java to "extend _YourClass"
Step 3: remove all the accessors, and replace with your business logic

Step 4: use EOModeler to generate _YourClass.java
Step 5: edit _YourClass.java to be "_YourClass extends EOGenericRecord" and the constructor to be called _YourClass


Repeat steps 4 and 5 as you update your eomodel. Edit YourClass.java as you revise your business logic.

EOGenerator does this - and more.

Paul



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Is it bad to put Objects in EO derived classes
      • From: Mike Schrag <email@hidden>
References: 
 >Is it bad to put Objects in EO derived classes (From: Baiss Eric Magnusson <email@hidden>)
 >Re: Is it bad to put Objects in EO derived classes (From: Chuck Hill <email@hidden>)
 >Re: Is it bad to put Objects in EO derived classes (From: Baiss Eric Magnusson <email@hidden>)
 >Re: Is it bad to put Objects in EO derived classes (From: Ken Anderson <email@hidden>)
 >Re: Is it bad to put Objects in EO derived classes (From: Baiss Eric Magnusson <email@hidden>)

  • Prev by Date: Re: Is it bad to put Objects in EO derived classes
  • Next by Date: Re: Is it bad to put Objects in EO derived classes
  • Previous by thread: Re: Is it bad to put Objects in EO derived classes
  • Next by thread: Re: Is it bad to put Objects in EO derived classes
  • Index(es):
    • Date
    • Thread