1 Reply Latest reply on Mar 21, 2002 2:07 PM by dsundstrom

    Strange behavior of related entity

    morphace

      I've got another issue, that looks strange for me.

      There are two entities, let's say A and B, with a 1:1 relationship.

      I implemented a getB() in A and a getA() method in B and the corresponding stuff in the deployment descriptor.

      When I use an instance of type A and use getB() to retrieve the related B entity, I always get an instance (local interface), even if there's no related B entity (in the database).

      When I try to get an attribute of the (nonexisting) B entity I evidently get a NoSuchEntityException, however the retrieval of the primaryKey works.

      Is this normal ?