Hi,
I have Order and Item classes.
In Order class:
@OneToMany(mappedBy="order")
public Collection items = new ArrayList();
In Item class:
@Id
@Column(name = "orderid", insertable = false, updatable = false)
public Long orderid;
@ManyToOne
@JoinColumn(name = "orderid")
public Order order;
When I deploy my app to jboss 4.0.4 GA. It throws the following error:
Repeated column in mapping for entity: Item column: orderid (should be mapped with insert="false" update="false")
What's wrong with my code?
Thanks,