0 Replies Latest reply on Dec 1, 2006 2:09 PM by Lydia Chung

    OneToMany w/ Composite Key problem

    Lydia Chung Newbie


      I have Order and Item classes.

      In Order class:
      public Collection items = new ArrayList();

      In Item class:
      @Column(name = "orderid", insertable = false, updatable = false)
      public Long orderid;

      @JoinColumn(name = "orderid")
      public Order order;

      When I deploy my app to jboss 4.0.4 GA. It throws the following error:

      Repeated column in mapping for entity: Item column: orderid (should be mapped with insert="false" update="false")

      What's wrong with my code?