0 Replies Latest reply on Aug 11, 2005 5:49 AM by Stephan Hartmann

    Error with foreign key column to more than one other bean

    Stephan Hartmann Newbie

      I have a bean "i18n" with a primary key which is a GUID and this is also a foreign key to two other beans' primary keys ("category" and "item"). Both relations are container managed.
      All works well for creating and reading the beans, but when i delete an i18n bean which is related to a category, i get a "NoSuchObjectException", although the category is there.
      It seems that JBoss only checks the second relation for the existance of a related bean (deleting an i18n which is related to an "item" works fine).

      Is this a bug or just a problem of my application design itself?

      TIA,
      Beffe