Re: Bindings From 2 Entities - How?
Re: Bindings From 2 Entities - How?
- Subject: Re: Bindings From 2 Entities - How?
- From: "Jonathan Fleming" <email@hidden>
- Date: Mon, 10 Mar 2003 21:58:45 +0000
From: Chuck Hill <email@hidden>
To: Jonathan Fleming <email@hidden>
Subject: Re: Bindings From 2 Entities - How?
Date: Mon, 10 Mar 2003 12:30:52 -0800
Jonathan Fleming wrote:
>Normalizing the data was one thing but then i was trying to fetch and
save
>the objects from both tables/entities from within a single java
file/class.
>Maybe this is possible but I wasn't getting there I had to split it so
that
>I had seperate classes/java files, when I did that everything started
>working just fine.
>
I'm not sure what you mean (I keep saying that, don't I?).
:-)
Do you mean one
Java class implementing two different EO objects?
Yes.
No, that won't work.
I'll assume here you mean two lookup objects that have identical
properties and implementation.
Yes.
To do that in Java you would use inheritance to make
two sub-classes with no implementation. It is the same in EOF.
That would have just got messy for me tying to be too clever, it was
easier to do what I did in the end.
That was probably a wise decision. However, I'd encourage you to go back
and look at inheritance in the future when you are more comfortable with
WO. It is one of EOF's most powerful features.
I thought this also. I can see that my confidence with WebObjects is gaining
at a reasonable rate and things like inheritance is something I do want to
tackle and conquer eventually. I don't think it'll be that long before i'm
there.
Thanks Chuck
Jonathan
Ps. I seem to be one step behind myself because everytime I get stuck, take
a break and stick my head in the book The Pragmatic Programmer I read
answers to issues I've been stuck with and had been probing the list
about... That's another form of frustation, because when you learn the
answer was under your nose all the time, you end up kicking yourself for
having troubled everyone with something you could have sorted yourself.
Good book by the way, thanks for the recommendation.
I'm trying to read as much as I can now that I have seen it answering
contentions of coding that I have had, and answering them well in east to
see PRAGMATIC way. ;-)
_________________________________________________________________
Worried what your kids see online? Protect them better with MSN 8
http://join.msn.com/?page=features/parental&pgmarket=en-gb&XAPID=186&DI=1059
_______________________________________________
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.