4 Replies Latest reply on Jan 3, 2005 7:53 PM by graysonpierce

    Repeated column in mapping

    graysonpierce

      I have a composite primary key made up of two Integer fields as I was able to create a PK class from the EJB 3.0 example. However my situation is different from the example in that one of the fields of the primary key is the JoinColumn to another table. This causes Jboss (Hibernate) to return a error, "Repeated column in mapping"

      According to Hibernate discussions this problem can be fixed by marking the OneToMany as "update=false, insert=false" however this doesn't seem to be part of the 3.0 spec, yet?

      Thanks.