Hi,

On 2013-11-25 3:38 AM, "Gintautas Sulskus" wrote:

Thank you for a very quick response.

Each model is specific to one database, you will need to have two models.   You 
can have as many models as you want in a project.  You can create a model group 
in Eclipse to hold both models so that you can make relationships between them.

Can I use relationship to make "virtual" joins, that do not exist in the 
database? E.g. I would like to express table_1 and table_2 as a virtual_table_3 
that exists only in EOModel. Then I would like to query and perform dml 
operations on that virtual table.

No, you can't do that.  They get fetched as disjoint Java objects.


Or should I express only the relationships that are present in the database?

Yes.  I will also note that this is not a commonly used feature of EOF, so you 
may run into bugs.


Chuck


ERRest.  There are multiple presentations in the WOCommunity.

Found it! Thanks a lot :)

Cheers,
Gintas


On Mon, Nov 25, 2013 at 5:39 AM, Chuck Hill 
<[email protected]<mailto:[email protected]>> wrote:

On 2013-11-24 7:40 PM, "Gintautas Sulskus" wrote:

Hello,

Just wanted to double check: I am trying to create an EOModel (in WOLips) that 
would use two entities from different databases. Is it possible to achieve 
this? I assume the answer is NO.

Each model is specific to one database, you will need to have two models.   You 
can have as many models as you want in a project.  You can create a model group 
in Eclipse to hold both models so that you can make relationships between them.

Chuck



Also, I was looking for any information on REST adaptor and could not find 
anything. Do you have any references to this?

Much appreciated!

Best Regards,
Gintautas



--
Best Regards,
Gintautas Sulskus
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to