10 Replies Latest reply on Apr 15, 2005 8:27 AM by Emmanuel Bernard

    Unidirectional OneToMany

    Manuel Beyeler Newbie

      Hi I have some problem with unidirectional OneToMany associations. As mentioned in the Specification it should work if I use a simple @OneToMany

      @OneToMany
      public Collection getLineItems() {
      return lineItems;
      }

      This should create a link-table for the assosiation. I get the following message:

      @AssociationTable, mappedBy, or @JoinColumn(s) must be specified for @OneToMany

      But none of these mentioned possibilities works. Is this not yet supported or am I doing something wrong?

      Regards
      schoetz