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.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4087384#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...