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:
       jboss.jca:service=DataSourceBinding,name=SQL
       Depends On Me:
       jboss.j2ee:jar=SourceCode.jar,name=ClassificationBeanFinal,service=EJB3
      


      This is my code

      @JoinColumn(name = "projectID", referencedColumnName = "projectID")
       @ManyToOne
       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.