0

I have three entities; entity DamagedItems { }, entity Recipe { }, entity RawProduct { }.

In a scenario where the DamagedItems should capture both Recipes and RawMaterial in one field, let's say damagedItemName, how do you relate these three entities using damegedItemName without creating identifier conflict?

   `//this is what I want to achieve
    relationship OnetoOne{
    DamagedItems {damagedItemName} to Recipe,
    DamagedItems {damagedItemName} to RawProduct
     }`

Creating the entities this way has resulted to identifier conflict

0

1 Answer 1

0

You can't model polymorphic relationships with JDL. You have to code it manually probably using inheritance.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.