inverse relationships

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

inverse relationships

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:40 pm

by athought >> Wed, 22 Sep 2004 5:45:03 GMT

Hello all

Can a superschema class have an inverse relationship with a subschema class or dictionary?

example:

Schema A has subSchema B.
Schema A has class "Animal", subSchema B has class "Mineral"

Can "Animal" have an inverse relationship called "allMinerals" of type ""Mineral" (with "Mineral" having "allAnimals" of type "Animal")?

Can "Animal" have a reference to a MKD of subSchema B, say "MineralsByName"?

Cheers People

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: inverse relationships

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:40 pm

by dcooper@jade.co.nz >> Wed, 22 Sep 2004 5:51:39 GMT

No. Inverse relationships cannot span schemas.

Cheers,
Dean.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: inverse relationships

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:40 pm

by allistar >> Wed, 22 Sep 2004 8:10:10 GMT

As Dean says, no. But you can sublcass the "Animal" class in subschema B and then inverse that new class to "Mineral" in schema B.

Regards,
Allistar.
--
------------------------------------------------------------------
Allistar Melville
Software Developer, Analyst allistar@silvermoon.co.nz
Auckland, NEW ZEALAND

Silvermoon Software
Specialising in JADE development and consulting
Visit us at: http://www.silvermoon.co.nz
*NEW* Simple web access to Jade at: www.silvermoon.co.nz/jhp.html ------------------------------------------------------------------

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: inverse relationships

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:40 pm

by athought >> Thu, 23 Sep 2004 2:49:14 GMT

Cheers Guys, I thought as much.

Cheers Allistar for your comment, I already knew what you mentioned but i assumed that with the continuing advancement of JADE there might be a new inversing "Law" regarding schema spanning.

Could this schema relationship spanning be a new feature?
Could it be beneficial?

mmmm..something to ponder.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: inverse relationships

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:40 pm

by allistar >> Thu, 23 Sep 2004 3:38:57 GMT

What happens if the subschema doesn't exist?

Allistar.
--
------------------------------------------------------------------
Allistar Melville
Software Developer, Analyst allistar@silvermoon.co.nz
Auckland, NEW ZEALAND

Silvermoon Software
Specialising in JADE development and consulting
Visit us at: http://www.silvermoon.co.nz
*NEW* Simple web access to Jade at: www.silvermoon.co.nz/jhp.html ------------------------------------------------------------------


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 12 guests