[jboss-user] [EJB 3.0] - Mapping Problem
Sukar1205
do-not-reply at jboss.com
Fri Sep 21 14:39:59 EDT 2007
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#4087384
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4087384
More information about the jboss-user
mailing list