Re: modify search form on result page?
Re: modify search form on result page?
- Subject: Re: modify search form on result page?
- From: David LeBer <email@hidden>
- Date: Mon, 9 Aug 2004 20:06:55 -0400
On 9-Aug-04, at 7:28 PM, James Cicenia wrote:
Man I'd die if I couldn't use inheritance in WOComponents! You are
getting the behavior in your custom ones now by inheriting from
WOComponent. Why stop there :-)
EO's can be a little tricky to depending on what kind of inheritance
you're talking about. If you want the classic LifeForm -> Mammal ->
Dog kind of inheritance then you've got database decisions to make.
But I use inheritance all the time to give all of my eo's common
behavior. That's how eogenerator does it's magic.
;david
\
I agree about the inheritance... however, I originally had done an EO
Inheritance, but, now my primary key table only has one entry as the
all inherited from the base class. I was wondering if you knew what
would happen if I uncouple this inheritance as specified in EOModeler.
This then leads me to wonder what kind of inheritance did you do at
the EO level?
What do you hope to achieve when you "uncouple" the inheritance? I'm
assuming you are using single-table mapping or inheritance. If you are
shooting to have a separate table for each EO Class, then you are going
to have to massage your data some. You could easily map your EO Classes
to different tables. But you're going to have to move the data
yourself.
If you create the new mappings, EOF will create new entries in the
eo-pk table but it will assume the tables are empty. If you manually
populate the new tables with your legacy data you will have to update
the values in the eo-pk table as well.
I'm using single table inheritance extensively in my current project
with good results.
;david
--
David LeBer
Codebase Software Systems
site: http://www.codebase.ca
blog: http://david.codebase.ca
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.