0 Replies Latest reply on Sep 21, 2007 2:39 PM by Amer Ramamni

    Mapping Problem

    Amer Ramamni Newbie

      I am getting an error when I run Jboss server that says..

      --- MBeans waiting for other MBeans ---
      ObjectName: persistence.units:jar=SourceCode.jar,unitName=SourceCodePU
       State: FAILED
       Reason: javax.persistence.PersistenceException: org.hibernate.MappingException: Repeated column in mapping for entity: EntityBean.KnowledgeBase column: projectID (should be mapped with insert="false" update="false")
       I Depend On:
       Depends On Me:

      This is my code

      @JoinColumn(name = "projectID", referencedColumnName = "projectID")
       private Project projectID;

      what is the synatx to insert = false and update = false... I tried adding it in JoinColumn but still giving me an error.
      THanks in advacne.