Re: An EnterpriseObject Design Question...
Re: An EnterpriseObject Design Question...
- Subject: Re: An EnterpriseObject Design Question...
- From: Arturo Perez <email@hidden>
- Date: Tue, 27 Dec 2005 19:17:39 -0500
Kieran Kelleher wrote:
Java interfaces allow us to implement flexible relationships between
objects or just plain flexibility using composition, but I am kinda
confused as to the best way to implement such
relationships/composition in my EOModel.
For example, let's say I have Entity A, B and C and each implements
the X interface. Now let's say I have entity G which by composition
has a to-one relationship with an object that implements the X
interface. How would I model that?
Another way to do what you're thinking about, if I understand, is to
use the Dynamic Proxy pattern. Java 1.5 has direct support for that
but you can certainly do it by hand if you need to.
-arturo
_______________________________________________
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