• 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: Baiss Eric Magnusson <email@hidden>
  • Date: Tue, 31 Oct 2006 13:26:50 -0800

On Oct 31, 2006, at 8:51 AM, Baiss Eric Magnusson wrote:

I need to add a BigDecimal to each Transaction record, I added it to
public class Transaction extends EOGenericRecord
as a local object. I don't instantiate it until it is needed.


My question is, even though it is transient, is it better to add it to the base EOModel, so it exists in the DB?

I've read that it is bad to put Objects in EO derived classes.

If I understand correctly, this is just a cached valued used for optimization.

Yes.

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.


----
Baiss Eric Magnusson
<http://www.Track-Your-Finances.com>
<http://www.CascadeWebDesign.com>


_______________________________________________ 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: Paul Lynch <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>)

  • 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